Effacer les filtres
Effacer les filtres

Problems with plot command R2016a

1 vue (au cours des 30 derniers jours)
Breylla Carvalho
Breylla Carvalho le 20 Sep 2017
Réponse apportée : Jan le 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 commentaires
Breylla Carvalho
Breylla Carvalho le 22 Sep 2017
Hi Rik.
Yes, I tried. But the problem still continue...
Rik
Rik le 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.

Connectez-vous pour commenter.

Réponses (1)

Jan
Jan le 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?

Catégories

En savoir plus sur Graphics Object Programming dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by