Labfans是一个针对大学生、工程师和科研工作者的技术社区。 论坛首页 | 联系我们(Contact Us)
MATLAB爱好者论坛-LabFans.com
返回   MATLAB爱好者论坛-LabFans.com > 工程数学软件 > MATLAB论坛
MATLAB论坛 一切MATLAB相关问题在此讨论。
 
 
主题工具 显示模式
旧 2008-03-26, 10:39   #1
shipf2007
初级会员
 
注册日期: 2008-03-19
年龄: 45
帖子: 10
声望力: 18
shipf2007 正向着好的方向发展
默认 【求助】小弟水平很低,谢谢各位了!

按照书中的例题写了以下语句
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)

每次练习使用一个新的函数都提示错误,我实在是不明白为什么,希望高人指点,不胜感激!
shipf2007 当前离线   回复时引用此帖
 

主题工具
显示模式

发帖规则
不可以发表新主题
不可以发表回复
不可以上传附件
不可以编辑自己的帖子

启用 BB 代码
论坛启用 表情符号
论坛启用 [IMG] 代码
论坛禁用 HTML 代码


相似的主题
主题 主题作者 版面 回复 最后发表
[求助]请问这个是用什么函数画的啊? mary82104 MATLAB论坛 2 2008-04-10 09:14
[求助]如何将一个指针指向的数据放到一个数组中 qqmoon LabVIEW论坛 0 2008-03-18 18:20
【求助】给定以下条件,设计一巴特沃兹滤波器 jackie0504 MATLAB论坛 0 2007-07-15 22:57


所有时间均为北京时间。现在的时间是 12:25


Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.