필터 지우기
필터 지우기

PLOT Specific x,y data

조회 수: 25 (최근 30일)
sanbadgerdude
sanbadgerdude 2016년 3월 31일
댓글: KSSV 2016년 4월 1일
I have 3 values...
At x=51,y=.0189
At x=201,y=.112
At x=40001,y=.202
All I want to do is plot these values and show the curve. On the x-axis labels for 51,201,40001 and on the y-axis labels for .0189, .112, .202.

채택된 답변

KSSV
KSSV 2016년 3월 31일
x = [51 ; 201 ; 40001] ;
y = [.0189 ; .112 ; .202] ;
plot(x,y)
  댓글 수: 2
sanbadgerdude
sanbadgerdude 2016년 3월 31일
Thank you! The semicolon is what had me confused. Did not think of that.
KSSV
KSSV 2016년 4월 1일
semicolon is not compulsory. You may skip the semicolon too...

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by