Azzera filtri
Azzera filtri

Problems with plot command R2016a

1 visualizzazione (ultimi 30 giorni)
Breylla Carvalho
Breylla Carvalho il 20 Set 2017
Risposto: Jan il 22 Set 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 Commenti
Breylla Carvalho
Breylla Carvalho il 22 Set 2017
Hi Rik.
Yes, I tried. But the problem still continue...
Rik
Rik il 22 Set 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.

Accedi per commentare.

Risposte (1)

Jan
Jan il 22 Set 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?

Categorie

Scopri di più su Graphics Object Programming in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by