作者angu81681652 (fantasy)
看板MATLAB
标题[问题]下列的图画不出来
时间Sun Oct 30 21:43:46 2011
会出现下列错误讯息:
Attempt to reference field of non-structure array.
clc;
clear;
x1=[0.01,0.1,1,2,3,4,5,6];
y1=[1.1,1.05,2.2,7.1,20.2,60.3,145.6,402.8];
x2=[0.01:0.02:6];
y2=exp(x2);
subplot(1,2,1)
plot(x1.y1,'*b',x2,y2,'-k')
subplot(1,2,2)
semilog(x1.y1,'*b',x2,y2,'-k')
请问要怎麽改,谢谢
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.112.214.155
1F:→ DKer:x1.y1 这啥? 10/30 21:45
2F:→ Raymond0710:....112我觉得这有点夸张,才几行debug都不会吗? 10/30 21:52
3F:→ angu81681652:感谢DKer 10/30 22:15