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

 Risposta accettata

Voss
Voss il 26 Feb 2022
xy = vertcat(J{:});
plot(xy(:,1),xy(:,2),'.');

2 Commenti

Mahmoud Abbas
Mahmoud Abbas il 26 Feb 2022
Worked perfectly, Thank You!
Voss
Voss il 26 Feb 2022
Excellent, You're welcome!

Accedi per commentare.

Più risposte (0)

Prodotti

Release

R2021b

Richiesto:

il 26 Feb 2022

Commentato:

il 26 Feb 2022

Community Treasure Hunt

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

Start Hunting!

Translated by