MATLAB: How to insert xyz label and title in 3D plotting 3d plots x=[100,115,120,130] y=[250,267,288,310] z=[50,54,68,72] point_id=[n1,n2,n3,n4] scatter3(x, y, z, 'b*'); text(x, y, z, point_id); %I wanna insert xyz axis and title for this figure 1 with codes. Best Answer Usetitle('My title')xlabel('My x label')and similarly for y and z axes. Related SolutionsMATLAB: Plotting 3D with points id. point_id={'n1', 'n2', 'n3', 'n4'};x=[100,115,120,130]y=[250,267,288,310]z=[50,54,68,72]scatter3(x, y, z, 'b*');text(x, y, z, point_id); %do this after the plotting or labels will not show up MATLAB: How to make a stem plot in MATLAB n=-10:10;a=0*n;a(n>=0)=1;stem(a)xlabel('this is the x label')ylabel('this is the y label')title('this is the title') Related QuestionPlotting a graph using matlabHelp with stem different colors3D surface plotting. Error (z must be a matrix)
Best Answer