推 linkinflyer: 假設檔名叫QQQ.xlsx,共10個sheet12/13 23:50
→ linkinflyer: for i = 1:10 12/13 23:51
→ linkinflyer: data(i) = xlsread('QQQ.xlsx',i,'a1')12/13 23:51
→ linkinflyer: plot((1:10),data)12/13 23:51
→ linkinflyer: 抱歉 plot前要加一個end12/13 23:52
感謝大大 我研究一下
※ 編輯: amateuruser (39.8.165.144), 12/14/2018 00:28:11
請問一下l大 我試了一下 好像還是有誤耶
In an assignment A(:) = B, the number of elements in A and B must be the same.
顯示是這樣的
※ 編輯: amateuruser (39.8.165.144), 12/14/2018 00:34:46
剛才又改了一下
clear;
for i=1:10;
data(:,i)=xlsread('test.xlsx',i,'A1');
end;
不過錯誤變成這個:
Assignment has more non-singleton rhs dimensions than non-singleton subscripts
※ 編輯: amateuruser (39.8.165.144), 12/14/2018 00:42:19