cla(app.UIAxes)
for i=1:half
line(app.UIAxes,[SEGMENTS(i,1),SEGMENTS(i+half,1)],...
[SEGMENTS(i,2),SEGMENTS(i+half,2)],...
[SEGMENTS(i,3),SEGMENTS(i+half,3)],'Color','k')
x_mid=mean([SEGMENTS(i,1),SEGMENTS(i+half,1)]);
y_mid=mean([SEGMENTS(i,2),SEGMENTS(i+half,2)]);
z_mid=mean([SEGMENTS(i,3),SEGMENTS(i+half,3)]);
text(app.UIAxes,x_mid,y_mid,z_mid,num2str(i),'Color','b',...
'FontSize',12,'FontWeight','bold'), hold(app.UIAxes,'on');
end
hold(app.UIAxes,'off');
2 Comments
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/500261-plotting-performance-reduced-in-app#comment_786996
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/500261-plotting-performance-reduced-in-app#comment_786996
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/500261-plotting-performance-reduced-in-app#comment_787062
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/500261-plotting-performance-reduced-in-app#comment_787062
Sign in to comment.