标题:弱弱的问,关于plot函数的应用
只看楼主
wbggs
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2006-4-9
 问题点数:0 回复次数:1 
弱弱的问,关于plot函数的应用

figure
hold on
[JU]=1:1:10
[U]=1:1:10
for i=1:1:10
if JU(i)<=5
U(i)=20;
else
a=func(JU(i))
U(i)=a;
end
end
plot(JU,U,'r')
hold off


提示错误:??? Attempt to execute SCRIPT plot as a function.

Error in ==> JUBUxian at 24
plot(JU,U,'r')


为什么啊?

搜索更多相关主题的帖子: plot 函数 应用 Attempt hold 
2006-05-17 22:48
fuguoduan
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2006-5-18
得分:0 

注意在matlab中,输入法只对英文有效,尤其是对为拼音的“'”符号不认可,注意改正

2006-05-18 15:18



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-65130-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 1.145026 second(s), 9 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved