Hello there,
Im currently trying to animate some data in a GUI. Since i interrupt the animation by hand i created an endless while loop updating all 5 axes like this
while true plotting_index = plotting_index+1; axes(handles.axes1) scatter3(scatter data); axis([xmin xmax ymin ymax zmin zmax]) view(azimuth,elevation); axes(handles.axes2) scatter3(scatter data); axis([xmin xmax ymin ymax zmin zmax]) view(azimuth2,elevation2); . . . interrupting condition end;
Since Im updating 5 Axes this way, the plotting gets pretty slow. Matlab recommended initializing the axes ouside the loop, but then I dont know how to assign the Data1(view,axes_lim) for axes1 and Data2 for axes2…etc. Coueld someone help me on that?
Thanks in advance ! 🙂
Best Answer