Alternate code for dragging a rectangle in R2010a Matlab
显示 更早的评论
I plot a rectangle in matlab and now i need to drag the rectangle. I plotted rectangle by using the command
a1=rectangle('Position',[25 1 (20*25.6) 25.6]);
and for dragging the command is
draggable(a1,'CONSTRAINTS','h',[-1000 1000])
I cant drag it. I am using Matlab R2010 a. Any alternate code is there for dragging rectangle. Thank you
4 个评论
Jan
2017-5-8
If you use an external function, please post a link to it. I guess you mean FEX: draggable. Do you get an error message or can you explain the problem with any details?
Amal Jose
2017-5-9
编辑:Walter Roberson
2017-5-9
Walter Roberson
2017-5-9
To use draggable you need to install https://www.mathworks.com/matlabcentral/fileexchange/4179-draggable
Adam
2017-5-9
Judging by this and your comment to the answer below you simply need to understand the concept of using the path in Matlab. Any function that you call must be on your path so you should quickly start to recognise that an error of the type:
Undefined function...
simply means you need to add that function to your path.
采纳的回答
更多回答(1 个)
Walter Roberson
2017-5-8
0 个投票
2 个评论
Amal Jose
2017-5-9
Walter Roberson
2017-5-9
I would be more enthusiastic about being of assistance if you could explain why it is necessary for you to use rectangle() when there are alternatives such as imrect().
类别
在 帮助中心 和 File Exchange 中查找有关 Dimensionality Reduction and Feature Extraction 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!