Unable to perform assignment because dot indexing is not supported for variables of this type.

2 views (last 30 days)
Hello everyone,
Ik downloaded a script form Wang Gang called; move a 3D object with mouse in a traditional 4-view window. The code doesn't work. This script was last updated in 2010 than. Since then the mathlab software got upedates. I think this is te reason why the code doesn't work anymore. I think the problem is in the strucutre, but it seems I can't figure it out.
The error is:
Unable to perform assignment because dot indexing is not supported for
variables of this type.
Error in TDFig>startmovit (line 188)
gui.currenthandle = src;
Error while evaluating Patch ButtonDownFcn.
line 187 and futher looks like this:
% Set callbacks
gui.currenthandle = src;
thisfig = gcbf();
set(thisfig,'WindowButtonMotionFcn',@movit);
set(thisfig,'WindowButtonUpFcn',@stopmovit);
gui.startpoint = get(gca,'CurrentPoint');
They use ButtonDownFcn in the following context:
function move3dObject(h)
gui = get(gcf,'UserData');
set(h,'ButtonDownFcn',@startmovit);
set(gcf,'UserData',gui);
does somebody know how to fix this error?

Answers (0)

Categories

Find more on Graphics Object Programming in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!