From: "salman " <>
Newsgroups: comp.soft-sys.matlab
Subject: Error using times, Matrix dimensions must agree
Date: Tue, 17 May 2011 03:55:04 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 21
Message-ID: <iqsrio$kfj$>
Reply-To: "salman " <>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: 1305604504 20979 (17 May 2011 03:55:04 GMT)
NNTP-Posting-Date: Tue, 17 May 2011 03:55:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2784299
Xref: comp.soft-sys.matlab:727166

Dear friends,

Have a good day,

i am getting this message "Error using times, MD must agree",
here are my three lines of code;

E_1=vee_1*(Y(:,3).*t)+initial_value.*(z- vee_1*t);%------this is where the error comes 

Y(:,3) is of size 200x1;

i dont know why this error comes, as i have checked the syntax and logic, it seems correct to me, yet its giving this error.

your help is greatly appreciated.

thanks alot