how to plot #3

  • Follow


y=ax+b format,in  this y is of 20by 20 matrix
plot with respect to time
but the command window shows like below
pls help me to solve this
time span is
t=linspace(0,0.12,10)

Error using ==> plot
Vectors must be the same lengths.
0
Reply vignesh_tooling (14) 7/31/2012 7:27:13 AM

"k.vigneshwaran K" wrote in message <jv81cj$ide$1@newscl01ah.mathworks.com>...
> y=ax+b format,in  this y is of 20by 20 matrix
> plot with respect to time
> but the command window shows like below
> pls help me to solve this
> time span is
> t=linspace(0,0.12,10)
> 
> Error using ==> plot
> Vectors must be the same lengths.

size(t)
ans =
     1   167

You can plot multiple columns of y with t, but t and y need to be the same length.

Barry
0
Reply barry.r.williamsNOSPAM (248) 7/31/2012 10:01:15 AM


1 Replies
20 Views

(page loaded in 0.027 seconds)


Reply: