三次元グラフ上において、特定の1つだけをプロットしたい
2 views (last 30 days)
Show older comments
三次元グラフ上において、特定の1つの点だけをプロットしたいと考えています。
そのような場合、どのようにプログラムを作成したらよいのでしょうか。
また、for文を用いて、1つずつプロットをしていくことを繰り返し、
プロットされた順番が分かるように矢印で結んでいくことは可能でしょうか。
0 Comments
Accepted Answer
Atsushi Ueno
on 5 Dec 2021
>三次元グラフ上において、特定の1つの点だけをプロットしたい
x = 0; y = 0; z = 0;
plot3(x, y, z, '-o');
>for文を用いて、1つずつプロットをしていくことを繰り返し、プロットされた順番が分かるように矢印で結んでいく
old = 0;
for cor = 1:1:3
vectarrow([old old old],[cor cor cor]);
hold on;
old = cor;
end
More Answers (0)
See Also
Categories
Find more on 2 次元および 3 次元プロット 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!