Given :
Y=[81 55 80 24 78 52 88 45 50 69 66 45 24 43 38 72 41 48 52 52 66 89];
X=[124 49 181 4 22 152 75 54 43 41 17 22 16 10 63 170 125 15 222 171 97 254];
I want to regress Y
on X
(simple linear regression). I tried with this code :
b= regress(Y,X)
But it gives me this error :
??? Error using ==> regress at 65
The number of rows in Y must equal the number of rows in X.
Thanks for any help.