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

 Akzeptierte Antwort

Voss
Voss am 26 Feb. 2022

0 Stimmen

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

2 Kommentare

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

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Produkte

Version

R2021b

Gefragt:

am 26 Feb. 2022

Kommentiert:

am 26 Feb. 2022

Community Treasure Hunt

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

Start Hunting!

Translated by