roeast17 发表于 2009-6-25 20:44

figure显示图像后不能进行旋转放大等操作~

用patch()在figure里显示一个三维模型,但不能进行放大、缩小、旋转的操作,错误提示为:
??? Attempt to execute SCRIPT line as a function.
Error in ==> zoom>localWindowButtonDownFcn at 343
    buttondownfcn(hZoom);
??? Error while evaluating figure WindowButtonDownFcn.
??? Attempt to execute SCRIPT line as a function.
Error in ==> rotate3d>makeRotaObj at 509
rdata.outlineObj = line(rdata.outlineData(1,:),rdata.outlineData(2,:),rdata.outlineData(3,:), ...
Error in ==> rotate3d>setState at 90
      rotaObj = makeRotaObj(fig);
Error in ==> rotate3d at 55
      setState(arg,arg2,rotatestyle)
Error in ==> putdowntext at 304
      rotate3d(fig,get(toolButton,'State'));
??? Error while evaluating uitoggletool ClickedCallback.

我认为是line函数冲突了,但将自己写的line改名之后还是不行,希望大家帮忙指点~

roeast17 发表于 2009-6-26 09:53

问题已解决

都是粗心惹的祸,我最后仔细检查了一遍,才发现在GUI所在文件夹里有一个line.m,是我在写空间直线相关算法时起的名字,所以对figure操作时造成了引用出错

ChaChing 发表于 2009-6-26 21:52

原帖由 roeast17 于 2009-6-25 20:44 发表 http://www.chinavib.com/forum/images/common/back.gif
...错误提示为: ??? Attempt to execute SCRIPT line as a function...
line应为function怎变为script ?就应该which line -all检查下!

还有错误提示与标题"不能进行旋转放大等操作", 有何关系?

[ 本帖最后由 ChaChing 于 2009-6-26 21:54 编辑 ]
页: [1]
查看完整版本: figure显示图像后不能进行旋转放大等操作~