Path: news.mathworks.com!newsfeed-00.mathworks.com!nntp.TheWorld.com!news.mathforum.org!not-for-mail
From: chen <872534417@qq.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Trying to plot a sinc function
Date: Tue, 16 Dec 2008 00:22:30 EST
Organization: The Math Forum
Lines: 2
Message-ID: <16833603.1229404980992.JavaMail.jakarta@nitrogen.mathforum.org>
References: <gi6bmq$n69$1@fred.mathworks.com>
NNTP-Posting-Host: nitrogen.mathforum.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: support1.mathforum.org 1229404981 2059 144.118.30.135 (16 Dec 2008 05:23:01 GMT)
X-Complaints-To: news@news.mathforum.org
NNTP-Posting-Date: Tue, 16 Dec 2008 05:23:01 +0000 (UTC)
Xref: news.mathworks.com comp.soft-sys.matlab:507221


This error is because when you write this program in matlab like y=sinc(t)*cos(t) it's means  array sinc(t) multiply array cos(t).so you should write like 
y=sint(t).*cis(t) in matlab program .