shipf2007
2008-03-26, 15:58
按照书中的例题写了以下语句
theta=0:0.01:2*pi
rho=sin(2*theta).*cos(2*theta)
polar(theta,rho,'k')
可却不能通过
错误提示为:
??? Attempt to execute SCRIPT polar as a function.
Error in ==> polar at 3
polar(theta,rho,'k')
还有下面的这个
x=linspace(0,2*pi,60)
y=sin(x)
z=cos(x)
t=sin(x)./(cos(x)+eps)
ct=cos(x)./(sin(x)+eps)
subplot(2,2,1)
plot(x,y)
subplot(2,2,2)
plot(x,z)
subplot(2,2,3)
plot(x,t)
subplot(2,2,4)
plot(x,ct)
错误提示为:
??? Attempt to execute SCRIPT subplot as a function.
Error in ==> subplot at 6
subplot(2,2,1)
每次练习使用一个新的函数都提示错误。
我在基础学习板块求助,有好心人告诉我他们执行都是好的,说可能是我的matlab有问题。
我实在是不明白为什么,希望高人指点,不胜感激!
我的cpu是amd的
theta=0:0.01:2*pi
rho=sin(2*theta).*cos(2*theta)
polar(theta,rho,'k')
可却不能通过
错误提示为:
??? Attempt to execute SCRIPT polar as a function.
Error in ==> polar at 3
polar(theta,rho,'k')
还有下面的这个
x=linspace(0,2*pi,60)
y=sin(x)
z=cos(x)
t=sin(x)./(cos(x)+eps)
ct=cos(x)./(sin(x)+eps)
subplot(2,2,1)
plot(x,y)
subplot(2,2,2)
plot(x,z)
subplot(2,2,3)
plot(x,t)
subplot(2,2,4)
plot(x,ct)
错误提示为:
??? Attempt to execute SCRIPT subplot as a function.
Error in ==> subplot at 6
subplot(2,2,1)
每次练习使用一个新的函数都提示错误。
我在基础学习板块求助,有好心人告诉我他们执行都是好的,说可能是我的matlab有问题。
我实在是不明白为什么,希望高人指点,不胜感激!
我的cpu是amd的