How to view the entire 3D object in XY plane and access the values from it
Show older comments
I have 3 ellipsoids that I have created using the ellisoid function. I need to view the ellipsoid in XY and XZ axis and access the values of all the 3 ellipse for some other calculation. I am familar with the view function, but how could I access the values from it. Can somebody help / suggest how could I calulate it in matlab?
Thanks,
1 Comment
Varsha Radhakrishnan
on 18 Aug 2021
Answers (1)
darova
on 18 Aug 2021
Try rotate
[x,y,z] = ellipsoid();
h = surf(x,y,z);
rotate(h,angle,dir,origin)
z1 = get(h,'zdata');
8 Comments
Varsha Radhakrishnan
on 19 Aug 2021
darova
on 19 Aug 2021
I dont'' understand. view() function doesn't return any data. I thought you want some after rotation. Isn't it?
Varsha Radhakrishnan
on 19 Aug 2021
darova
on 19 Aug 2021
No, it's not. I still don't understand. Are you asking how to manipulate using view() or what?
Varsha Radhakrishnan
on 19 Aug 2021
Edited: Varsha Radhakrishnan
on 19 Aug 2021
darova
on 19 Aug 2021
- Can I find the major/minor axis values of ellipse by using Maxis =max(x)-min(x); and max(y)-min(y)? if wrong, is there any way to find it?
If the axes horizontal or vertical then answer is YES. But if the ellises will be rotated at some angle then answer is NO
Varsha Radhakrishnan
on 19 Aug 2021
darova
on 19 Aug 2021
im jsut doing my job
Categories
Find more on Surface and Mesh Plots 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!