PLOT Specific x,y data

43 visualizaciones (últimos 30 días)
sanbadgerdude
sanbadgerdude el 31 de Mzo. de 2016
Comentada: KSSV el 1 de Abr. de 2016
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.

Respuesta aceptada

KSSV
KSSV el 31 de Mzo. de 2016
x = [51 ; 201 ; 40001] ;
y = [.0189 ; .112 ; .202] ;
plot(x,y)
  2 comentarios
sanbadgerdude
sanbadgerdude el 31 de Mzo. de 2016
Thank you! The semicolon is what had me confused. Did not think of that.
KSSV
KSSV el 1 de Abr. de 2016
semicolon is not compulsory. You may skip the semicolon too...

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre View and Analyze Simulation Results en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by