标题:[求助]set(h,'XData','x','YData','y')出错
取消只看楼主
zxye
Rank: 1
等 级:新手上路
帖 子:27
专家分:0
注 册:2007-3-31
 问题点数:0 回复次数:0 
[求助]set(h,'XData','x','YData','y')出错

程序如下,
n=20;
s=0.02;
x=rand(n,1)-0.5;
y=rand(n,1)-0.5;
h=plot(x,y,'.');
axis([-1 1 -1 1])
axis square
grid off
set(h,'erasemode','xor','markersize',18);
while 1
drawnow
x=x+s*randn(n,1)
y=y+s*randn(n,1)
set(h,'XData','x','YData','y')
end
运行时显示错误
??? Error using ==> set
Value must be numeric.

Error in ==> practiceofmovie at 14
set(h,'XData','x','YData','y')
请高手指教!

搜索更多相关主题的帖子: set XData YData 
2007-06-02 15:21



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




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

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