三次元グラフ上におい​て、特定の1つだけを​プロットしたい

2 views (last 30 days)
Y.T
Y.T on 5 Dec 2021
Commented: Y.T on 6 Dec 2021
三次元グラフ上において、特定の1つの点だけをプロットしたいと考えています。
そのような場合、どのようにプログラムを作成したらよいのでしょうか。
また、for文を用いて、1つずつプロットをしていくことを繰り返し、
プロットされた順番が分かるように矢印で結んでいくことは可能でしょうか。

Accepted Answer

Atsushi Ueno
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
  1 Comment
Y.T
Y.T on 6 Dec 2021
ご回答、ありがとうございます。

Sign in to comment.

More Answers (0)

Categories

Find more on 2 次元および 3 次元プロット in Help Center and File Exchange

Products


Release

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!