![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/404175/image.png)
how to plot multiple 3d on one graph ?
76 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
採用された回答
Ameer Hamza
2020 年 11 月 5 日
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 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Annotations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!