PLOT Specific x,y data

46 次查看(过去 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 中查找有关 View and Analyze Simulation Results 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by