Filter löschen
Filter löschen

Problems with plot command R2016a

1 Ansicht (letzte 30 Tage)
Breylla Carvalho
Breylla Carvalho am 20 Sep. 2017
Beantwortet: Jan am 22 Sep. 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 Kommentare
Breylla Carvalho
Breylla Carvalho am 22 Sep. 2017
Hi Rik.
Yes, I tried. But the problem still continue...
Rik
Rik am 22 Sep. 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.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Jan
Jan am 22 Sep. 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?

Kategorien

Mehr zu Graphics Object Programming finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by