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 日

0 投票

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 件)

カテゴリ

製品

リリース

R2021b

質問済み:

2022 年 2 月 26 日

コメント済み:

2022 年 2 月 26 日

Community Treasure Hunt

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

Start Hunting!

Translated by