Plotting Column X vs Column Y?

조회 수: 7 (최근 30일)
Luis Ricardo Rivera Goitia
Luis Ricardo Rivera Goitia 2023년 3월 21일
댓글: Luis Ricardo Rivera Goitia 2023년 3월 21일
Having this table, how can I obtain a graph that shows on x-axis the first column values and on y-axis the second column values?

채택된 답변

Cameron
Cameron 2023년 3월 21일
편집: Cameron 2023년 3월 21일
scatter(x(:,1),x(:,2))
  댓글 수: 3
Les Beckham
Les Beckham 2023년 3월 21일
Use plot() instead of scatter().
Luis Ricardo Rivera Goitia
Luis Ricardo Rivera Goitia 2023년 3월 21일
I used plot before using scatter, and didn't work as scatter writing down the values of time in the x-axis. But I'll try, thx.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Discrete Data Plots에 대해 자세히 알아보기

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by