Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

Plotting without Specifying a set x range

1 visualización (últimos 30 días)
Calvin Chang
Calvin Chang el 24 de Jun. de 2019
Cerrada: Guillaume el 24 de Jun. de 2019
The following code should work. Why doesn't it work? How can I make this work?
x=[0 1 2 3 4];
y=[2 9/4 38/17 161/72 682/305];
plot(x,y)
Index in position 1 is invalid. Array indices must be positive integers or logical values.
Error in test (line 4)
plot(x,y)

Respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by