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

카테고리

도움말 센터File Exchange에서 Logical에 대해 자세히 알아보기

제품

릴리스

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