plot arc that pass through a particular point

1 回表示 (過去 30 日間)
Elysi Cochin
Elysi Cochin 2021 年 6 月 21 日
編集済み: Elysi Cochin 2021 年 6 月 22 日
I have attached my (x,y,z) coordinate values
And i plot these values using the below code
load XYZ
for i = 1 : size(XX,2)
plot3(XX(:,i),YY(:,i),ZZ(:,i)); hold on
end
grid on; hold off;
But if we zoom, we can see that, the arcs does not pass through the zero-coordinate
What can i do, to make all the arcs (or any arc i give) pass through the zero-coordinate?

採用された回答

Sergey Kasyanov
Sergey Kasyanov 2021 年 6 月 21 日
Hello!
The simplest way is:
figure; hold on;
for i = 1 : size(XX,2)
[~, n] = max(XX(:,i));
plot3(XX(:,i), YY(:,i) - YY(n,i), ZZ(:,i)- ZZ(n,i));
end
  7 件のコメント
Sergey Kasyanov
Sergey Kasyanov 2021 年 6 月 22 日
Is it OK?
Elysi Cochin
Elysi Cochin 2021 年 6 月 22 日
編集済み: Elysi Cochin 2021 年 6 月 22 日
Thank you Sir, now its working

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeWaveform Generation についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by