This function crops and plots ellipsoids inside a box. Example file (Example.m) is provided for plotting two ellipsoids inside larger and smaller boxes. The ellipsoids inside the smaller box are cropped.
function Plot_Ellipsoids(x,y,z,Ellipsoids)
Input:
x=[x1 x2]: x boundaries of the box
y=[y1 y2]: y boundaries of the box
z=[z1 z2]: z boundaries of the box
Ellipsoids: (N*9) array. N is the number of ellipsoids. each column represents:
(:,1): radius of ellipsoids at direction 1
(:,2): radius of ellipsoids at direction 2
(:,3): radius of ellipsoids at direction 3
(:,4): x-cooridante of centroid
(:,5): y-coordinate of centroid
(:,6): z-coordinate of centroid
(:,7): Inclination angle 1
(:,8): Inclination angle 2
(:,9): Inclination angle 3
Output:
Ellipsoids are cropped and plotted inside a box
Citar como
Ayad Al-Rumaithi (2024). Crop and Plot Ellipsoids (https://www.mathworks.com/matlabcentral/fileexchange/135767-crop-and-plot-ellipsoids), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Se creó con
R2017b
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS LinuxEtiquetas
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.