[問題] 繪圖問題 錯誤訊息

看板MATLAB作者 (moon river)時間13年前 (2012/10/15 04:46), 編輯推噓1(100)
留言1則, 1人參與, 最新討論串1/1
以下是程式 % Damping ratio=d=keppa % Wn=sqrt(K/M) % r=delta Wn=100; V0=1; t=0:0.005:2; d=0 ; Wd=Wn*sqrt(1-d^2); r=d/(1-d^2); %d=C/(2*sqrt(K*M)); y=V0*(1-exp(-d*Wn*t).*(cos(Wd*t)-r*sin(Wd*t))); Subplot(3,1,1); Plot(t,y) Xlabel('time(s)') ylabel('y(t)') title('damping ratio = 0') 這是解一個有彈簧的圖 dedug-run 出現了 Cannot find an exact (case-sensitive) match for 'Subplot' The closest match is: subplot in C:\Program Files\MATLAB\R2012a\toolbox\matlab\graph2d\subplot.m Error in homework1011015 (line 13) Subplot(3,1,1); 嗚.... Subplot不是內建的嗎.... 這樣該怎麼辦? -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 118.166.91.46 也不知道做了什麼@@ 剛才改一改錯誤又變成 Undefined function 'Plot' for input arguments of type 'double'. Error in homework1011015 (line 13) subplot(3,1,1);Plot(t,y) 疑惑... ※ 編輯: hjy22016 來自: 118.166.91.46 (10/15 04:54)

10/15 07:21, , 1F
大小寫
10/15 07:21, 1F
文章代碼(AID): #1GUoJ0p4 (MATLAB)