Borrar filtros
Borrar filtros

Error using plot Invalid first data argument. How i can solve it!?

1 visualización (últimos 30 días)
antonio
antonio el 12 de Mayo de 2015
Respondida: Walter Roberson el 13 de Mayo de 2015
I ave this function, but when i start it, this returns me:
Error using plot
Invalid first data argument.
Error in cal_flowGP (line 53)
plot(flow);
any help please? Thanks a lot!
  1 comentario
Star Strider
Star Strider el 12 de Mayo de 2015
Typing:
whos flow
in your code or the Command Window may help you find the problem. Pay special attention to Class.

Iniciar sesión para comentar.

Respuestas (2)

Sainath Varikuti
Sainath Varikuti el 13 de Mayo de 2015
Check the values of the 'flow' variable in the MATLAB Workspace Window.

Walter Roberson
Walter Roberson el 13 de Mayo de 2015
At that point in your code, "flow" is not a variable, so it is being interpreted as a call to the routine named "flow", but you are not passing arguments into that call.
You should check the variable names you are using; you will find that you assigned your data to some other name, or the place you assigned it is not in the same scope as where you are trying to use it.

Categorías

Más información sobre Line Plots en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by