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

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

 Réponse acceptée

Atsushi Ueno
Atsushi Ueno le 5 Déc 2021

0 votes

>三次元グラフ上において、特定の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 commentaire

Y.T
Y.T le 6 Déc 2021
ご回答、ありがとうございます。

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur グラフィックス パフォーマンス dans Centre d'aide et File Exchange

Produits

Version

R2020b

Community Treasure Hunt

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

Start Hunting!