![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/404175/image.png)
how to plot multiple 3d on one graph ?
82 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Teerapong Poltue
el 5 de Nov. de 2020
Comentada: Richard Summers
el 15 de Oct. de 2021
I've try hold on but that isn't work. It turns out to be 2d plot
interval = [-5:0.1:5];
x = -5:0.1:5;
y = -5:0.1:5;
[X,Y] = meshgrid(x,y);
z1 = acos((cos(interval)+cos((interval).')));
z2 = acos(-(cos(interval)+cos((interval).')));
figure(1);
plot3(X,Y,z2)
figure(2);
plot3(X,Y,z1)
0 comentarios
Respuesta aceptada
Ameer Hamza
el 5 de Nov. de 2020
Following code works fine
interval = [-5:0.1:5];
x = -5:0.1:5;
y = -5:0.1:5;
[X,Y] = meshgrid(x,y);
z1 = acos((cos(interval)+cos((interval).')));
z2 = acos(-(cos(interval)+cos((interval).')));
figure(1);
plot3(X,Y,z2)
hold on
plot3(X,Y,z1)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/404175/image.png)
3 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Annotations 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!