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