Plotting a cell array

1 Ansicht (letzte 30 Tage)
Mahmoud Abbas
Mahmoud Abbas am 26 Feb. 2022
Kommentiert: Voss am 26 Feb. 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

Akzeptierte Antwort

Voss
Voss am 26 Feb. 2022
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)

Kategorien

Mehr zu Line Plots finden Sie in Help Center und File Exchange

Produkte


Version

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by