I have an array 'J' that I want to plot. Each cell in the array represents the x and y coordinates of a single point. I am not sure how to do the plot

 Réponse acceptée

Voss
Voss le 26 Fév 2022

0 votes

xy = vertcat(J{:});
plot(xy(:,1),xy(:,2),'.');

2 commentaires

Mahmoud Abbas
Mahmoud Abbas le 26 Fév 2022
Worked perfectly, Thank You!
Voss
Voss le 26 Fév 2022
Excellent, You're welcome!

Connectez-vous pour commenter.

Plus de réponses (0)

Produits

Version

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by