Problems with plot command R2016a

1 次查看(过去 30 天)
Breylla Carvalho
Breylla Carvalho 2017-9-20
回答: Jan 2017-9-22
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 个评论
Breylla Carvalho
Breylla Carvalho 2017-9-22
Hi Rik.
Yes, I tried. But the problem still continue...
Rik
Rik 2017-9-22
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.

请先登录,再进行评论。

回答(1 个)

Jan
Jan 2017-9-22
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?

类别

Help CenterFile Exchange 中查找有关 Graphics Object Programming 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by