Borrar filtros
Borrar filtros

Problems with plot command R2016a

1 visualización (últimos 30 días)
Breylla Carvalho
Breylla Carvalho el 20 de Sept. de 2017
Respondida: Jan el 22 de Sept. de 2017
Hi everyone. I'm with trouble with plot command.
I have this data:
ans 1x6 12 char
rgtempo 38376x1 307008 double
rgv22 38376x1 307008 double
rgv32 38376x1 307008 double
rgv53 38376x1 307008 double
rgv56 38376x1 307008 double
rgv59 38376x1 307008 double
rgv62_corr 38376x1 307008 double
rgv65 38376x1 307008 double
So, when I try to plot it
plot(rgtempo,rgv22);
I have this message:
Error using gobjects (line 63) Inputs must be scalar numeric or a vector of array dimensions.
Error in newplot (line 47) fig = gobjects(0);
Any ideia what I get wrong?
  3 comentarios
Breylla Carvalho
Breylla Carvalho el 22 de Sept. de 2017
Hi Rik.
Yes, I tried. But the problem still continue...
Rik
Rik el 22 de Sept. de 2017
Try to reduce it to a small piece of code that we can run, which still produces the error (and post it here). This will either help you see the error yourself, or make it much easier for us.

Iniciar sesión para comentar.

Respuestas (1)

Jan
Jan el 22 de Sept. de 2017
I'm convinced that Matlab does not reject your data out of a mood. Whenever such magic things happen, you can be sure, that you have overseen a detail. Try this:
which rgtempo -all
class(rgtempo)
size(rgtempo)
which rgv22 -all
class(rgv22)
size(rgv22)
which plot -all
plot(rgtempo, rgv22);
directly before the plot command is called. What output do you get?

Categorías

Más información sobre Graphics Object Programming 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