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.

 Akzeptierte Antwort

KSSV
KSSV am 31 Mär. 2016

0 Stimmen

x = [51 ; 201 ; 40001] ;
y = [.0189 ; .112 ; .202] ;
plot(x,y)

2 Kommentare

sanbadgerdude
sanbadgerdude am 31 Mär. 2016
Thank you! The semicolon is what had me confused. Did not think of that.
KSSV
KSSV am 1 Apr. 2016
semicolon is not compulsory. You may skip the semicolon too...

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Hilfe-Center und File Exchange

Tags

Gefragt:

am 31 Mär. 2016

Kommentiert:

am 1 Apr. 2016

Community Treasure Hunt

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

Start Hunting!

Translated by