Path: news.mathworks.com!not-for-mail
From: "salman " <salmanabdullah9@gmail.com>
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$1@newscl01ah.mathworks.com>
Reply-To: "salman " <salmanabdullah9@gmail.com>
NNTP-Posting-Host: www-01-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: newscl01ah.mathworks.com 1305604504 20979 172.30.248.46 (17 May 2011 03:55:04 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 17 May 2011 03:55:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2784299
Xref: news.mathworks.com 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;

t=linspace(0,.0000001,200)
z=linspace(-.0002,.0002,200);
Initial_value=(exp(-(z.^2)./L.^2).*cos(z))./z;
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