Path: news.mathworks.com!not-for-mail
From: "Yan Rosh" <yan_rosh@yahoo.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Trying to plot a sinc function
Date: Mon, 15 Dec 2008 20:19:02 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 23
Message-ID: <gi6e3m$bh$1@fred.mathworks.com>
References: <gi6bmq$n69$1@fred.mathworks.com> <gi6cmo$8mk$1@fred.mathworks.com>
Reply-To: "Yan Rosh" <yan_rosh@yahoo.com>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1229372342 369 172.30.248.35 (15 Dec 2008 20:19:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 15 Dec 2008 20:19:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1641676
Xref: news.mathworks.com comp.soft-sys.matlab:507171


"Roger Stafford" <ellieandrogerxyzzy@mindspring.com.invalid> wrote in message <gi6cmo$8mk$1@fred.mathworks.com>...
> "Yan Rosh" <yan_rosh@yahoo.com> wrote in message <gi6bmq$n69$1@fred.mathworks.com>...
> > I have to following problem:
> > 
> > I define a variable t, as such: t = (-12:0.001:12);
> > and then I try to plot this graph:
> > 
> > y = sinc(t)cos(t);
> > 
> > but then I get an error message (unfortunately I am not in the schools computer lab so I can't tell you the exact error message), it says basically that I can't multiply those matrices because they are not of the same size.
> > 
> > What am I doing wrong here?
> > 
> > Thank you!!!
> 
>   I am guessing you need to add the 'dot' along with the multiplication symbol:
> 
>  y = sinc(t).*cos(t);
> 
> Roger Staffod


Thanks, ill try it and let you know... :)