matlab 符号常量n = 200;theta = 0.3;for i=1:n;x=0:0.01:i;theta=0.3;y=(1-1/sqrt(1-theta^2)*exp(-theta*x).sin(sqrt(1-theta^2)*x+acos(theta));plot(x,y)axis([0,20,0,1.5]);M(i)=getframe;endmovie(M,3)%为什么提示 y=(1-1/sqrt(1-theta^2)*exp(-theta*x)
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/13 14:19:13
matlab 符号常量n = 200;theta = 0.3;for i=1:n;x=0:0.01:i;theta=0.3;y=(1-1/sqrt(1-theta^2)*exp(-theta*x).sin(sqrt(1-theta^2)*x+acos(theta));plot(x,y)axis([0,20,0,1.5]);M(i)=getframe;endmovie(M,3)%为什么提示 y=(1-1/sqrt(1-theta^2)*exp(-theta*x)
matlab 符号常量
n = 200;
theta = 0.3;
for i=1:n;
x=0:0.01:i;
theta=0.3;
y=(1-1/sqrt(1-theta^2)*exp(-theta*x).sin(sqrt(1-theta^2)*x+acos(theta));
plot(x,y)
axis([0,20,0,1.5]);
M(i)=getframe;
end
movie(M,3)
%为什么提示 y=(1-1/sqrt(1-theta^2)*exp(-theta*x).sin(sqrt(1-theta^2)*x+acos(theta));有错
matlab 符号常量n = 200;theta = 0.3;for i=1:n;x=0:0.01:i;theta=0.3;y=(1-1/sqrt(1-theta^2)*exp(-theta*x).sin(sqrt(1-theta^2)*x+acos(theta));plot(x,y)axis([0,20,0,1.5]);M(i)=getframe;endmovie(M,3)%为什么提示 y=(1-1/sqrt(1-theta^2)*exp(-theta*x)
y=(1-1./sqrt(1-theta.^2).*exp(-theta.*x).*sin(sqrt(1-theta.^2).*x+acos(theta)))就行了,建议写这个的时候,运算符前面都加上一个点,例如乘号*,要写成.*才行哦