How to put name axes in 3D surf graph
7 views (last 30 days)
Show older comments
mohd akmal masud on 16 Jan 2023
How to put name of axes in 3D surf graph? Let say I want to put the name x-axes:Gy, y-axes: mm, z-axes: mm
I have the below code
The image data as attached.
[spect map] = dicomread('I-13125610N1.dcm'); % whatever the name of your image data set
spect = squeeze(spect); %seperately from 4D to 3D (frame)
title('Sum of All Slices')
%the selected slice that you want to plot
surf(spect(:,:,end)) %"1" indicated the first slice, "end" indicated the las slice
title('First Slice') % title of the graph.
Same way you would with a 2D plot.
Edited: Chris on 16 Jan 2023
Why not? It works here:
[x,y,z] = sphere;
surf(x,y,z); axis equal
And here's your surface on my machine.
Note, you can make this look a little better by making the edges invisible.
More Answers (0)
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!