作者hjy22016 (moon river)
看板MATLAB
标题[问题] 更正错误
时间Mon Oct 15 04:46:53 2012
以下是程式
% 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)
1F:推 sunev:大小写 10/15 07:21