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일

0 개 추천

scatter(x(:,1),x(:,2))

댓글 수: 3

Thank you so much! It worked, just one more question, how can I make a line join all the plotted points.
Les Beckham
Les Beckham 2023년 3월 21일
Use plot() instead of scatter().
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개)

카테고리

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

제품

릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by