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

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

Risposta accettata

Atsushi Ueno
Atsushi Ueno il 5 Dic 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 Commento
Y.T
Y.T il 6 Dic 2021
ご回答、ありがとうございます。

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su 2 次元および 3 次元プロット in Help Center e File Exchange

Prodotti


Release

R2020b

Community Treasure Hunt

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

Start Hunting!