[問題]下列的圖畫不出來
會出現下列錯誤訊息:
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
→
10/30 21:45, , 1F
10/30 21:45, 1F
→
10/30 21:52, , 2F
10/30 21:52, 2F
→
10/30 22:15, , 3F
10/30 22:15, 3F
MATLAB 近期熱門文章
PTT數位生活區 即時熱門文章