[問題] 輸入格式已回收
Enter name of stored time array e.g. y(:,1) >
Enter name of stored variable array e.g. y(:,5) >
Enter string label for stored variable e.g. i_1 >
Enter time when sample cycle ends, e.g. tstop >
想請問上面四行各要如何輸入?
1.我直接輸入他給的EG y(:,1)
結果出現下面的訊息:
??? Undefined function or variable "y".
Error in ==> FFTPLOT at 41
xx = input('Enter name of stored time array e.g. y(:,1) > ');
2.我全部都打1 1 1 1
則出現以下的訊息
??? Error using ==> interp1 at 185
There should be at least two data points.
Error in ==> FFTPLOT at 49
ysample = interp1(xx,yy,time); % linear interpolation
不知道是不是有些東西沒有輸入進去
因為檔案是老師給的
只有一個章節
怕說是有關鍵的M檔案沒有載入
想來問一下板上的高手
要輸入什麼樣的格式才是正確的
不勝感激
--
學長學長!那邊有飆車族 學長學長!那邊剛好像有女生 學長學長~那邊有人紅燈右轉
砍人 被壓上車 ψQSWEET
鴿 ◥ 鴿 ◥ 鴿 ◥ 鴿 ◥ 鴿 ◥他媽的◤ 鴿
◤◎ ◎ 喔~~ ◤︶ ︶ ◤◎ ◎ 喔~~ ◤︶ ︶ ◤◎ ◎ 攔下來呀!⊙ ⊙◥
◥ ◤ ◥ █◤ ◥ ◤ ◥ 3◤╯ξ ◥ ◤沒王法了◥皿 ◤
◥ ◥◥ (哈欠)◤ ◥◤ ◥ ◥◥ (煙~) ◤ ◥ ◤ ̄ ◥ ◥◥是不是?!(◥ ◤ ◤)
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 123.240.39.209
MATLAB 近期熱門文章
PTT數位生活區 即時熱門文章