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

Worked perfectly, Thank You!
Voss
Voss on 26 Feb 2022
Excellent, You're welcome!

Sign in to comment.

More Answers (0)

Products

Release

R2021b

Asked:

on 26 Feb 2022

Commented:

on 26 Feb 2022

Community Treasure Hunt

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

Start Hunting!