Thread Closed

how to interchange Z and Y axes direction in MATLAB?

 
Share Thread
Jun9-10, 05:29 AM   #1
 

how to interchange Z and Y axes direction in MATLAB?


i have 3D plot in matlab
lets say i use example isosurface from matlab help

[x,y,z,v] = flow;
p = patch(isosurface(x,y,z,v,-3));
isonormals(x,y,z,v,p)
set(p,'FaceColor','red','EdgeColor','none');
daspect([1 1 1])
view(3); axis tight
camlight
lighting gouraud
xlabel('x-axis');ylabel('y-axis');zlabel('z-axis');

but the problem is that z axis is in vertical direction, and x & y is horizontal direction. i want to interchange so that x and z is horizontal direction and y is in vertical direction. well i can manipulate data dan axis label, but i prefer to do without manipulate the data. is there anyone knows how to do it?
thanks
PhysOrg.com science news on PhysOrg.com

>> City-life changes blackbird personalities, study shows
>> Origins of 'The Hoff' crab revealed (w/ Video)
>> Older males make better fathers: Mature male beetles work harder, care less about female infidelity
Jun9-10, 10:07 AM   #2
 
Although you're asking in relation to one of the demo files, rotating the graphics axes for a plot is generally tightly coupled to the particular plot you're working with. You can achieve what you want using a suitable combination of the view and camroll commands.

Check the docs for examples on how to use them.
Thread Closed

Tags
matlab, plot3d

Similar discussions for: how to interchange Z and Y axes direction in MATLAB?
Thread Forum Replies
interchange of integrals and limits Calculus 4
A really easy question on properties of the Levi-Civita tensor and index interchange General Math 2
Magnitude and direction of change in velocity. Dont know how to get direction. Introductory Physics Homework 3
Direction of acceleration when direction of moving particle changes by 90 degrees? Introductory Physics Homework 6
axes Brain Teasers 2