Plotting a cell array

1 vue (au cours des 30 derniers jours)
Mahmoud Abbas
Mahmoud Abbas le 26 Fév 2022
Commenté : Voss le 26 Fév 2022
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
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)

Catégories

En savoir plus sur Line Plots dans Help Center et File Exchange

Produits


Version

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by