3D plot of an ellipsoid
29 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Simone Fiumi
el 12 de Oct. de 2021
Comentada: Simone Fiumi
el 12 de Oct. de 2021
Hi, I have to plot the following function on a 3d graph, it should be an ellipsoid. theta_ is a 1x3 vector and COV a 3x3 matrix
RC=@(x,y,z) (theta_-[x y z])*inv(COV)*(theta_-[x y z])'-5;
0 comentarios
Respuesta aceptada
John D'Errico
el 12 de Oct. de 2021
Editada: John D'Errico
el 12 de Oct. de 2021
theta_ = [1 2 3];
COV = cov(rand(10,3)); % picking some arbitrary values for theta_ and COV...
RC=@(x,y,z) (theta_-[x y z])*inv(COV)*(theta_-[x y z])'-5;
fimplicit3(RC)
axis equal
box on
xlabel x
ylabel y
zlabel z
Más respuestas (0)
Ver también
Categorías
Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!