Plotting a cell array

10 views (last 30 days)
Mahmoud Abbas
Mahmoud Abbas on 26 Feb 2022
Commented: Voss on 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

Accepted Answer

Voss
Voss on 26 Feb 2022
xy = vertcat(J{:});
plot(xy(:,1),xy(:,2),'.');
  2 Comments
Mahmoud Abbas
Mahmoud Abbas on 26 Feb 2022
Worked perfectly, Thank You!
Voss
Voss on 26 Feb 2022
Excellent, You're welcome!

Sign in to comment.

More Answers (0)

Categories

Find more on Line Plots in Help Center and File Exchange

Products


Release

R2021b

Community Treasure Hunt

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

Start Hunting!