Plotting a cell array

1 次查看(过去 30 天)
Mahmoud Abbas
Mahmoud Abbas 2022-2-26
评论: Voss 2022-2-26
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

采纳的回答

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

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Line Plots 的更多信息

产品


版本

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by