plot arc that pass through a particular point

1 vue (au cours des 30 derniers jours)
Elysi Cochin
Elysi Cochin le 21 Juin 2021
Modifié(e) : Elysi Cochin le 22 Juin 2021
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?

Réponse acceptée

Sergey Kasyanov
Sergey Kasyanov le 21 Juin 2021
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 commentaires
Sergey Kasyanov
Sergey Kasyanov le 22 Juin 2021
Is it OK?
Elysi Cochin
Elysi Cochin le 22 Juin 2021
Modifié(e) : Elysi Cochin le 22 Juin 2021
Thank you Sir, now its working

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Interactions, Camera Views, and Lighting dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by