Path: news.mathworks.com!not-for-mail
From: "Greg" <gwolff@mathworks.remove.this.text.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: usage of " . " in these two equations !!!
Date: Thu, 19 Feb 2009 14:57:02 +0000 (UTC)
Organization: The MathWorks Inc
Lines: 23
Message-ID: <gnjrvu$hqh$1@fred.mathworks.com>
References: <gnftna$jud$1@fred.mathworks.com> <gng046$quc$1@fred.mathworks.com>
Reply-To: "Greg" <gwolff@mathworks.remove.this.text.com>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1235055422 18257 172.30.248.38 (19 Feb 2009 14:57:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 19 Feb 2009 14:57:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 603712
Xref: news.mathworks.com comp.soft-sys.matlab:519456


"Matt Fig" <spamanon@yahoo.com> wrote in message <gng046$quc$1@fred.mathworks.com>...
> "Kuo-Hsien" <mchangks@hotmail.com> wrote in message 
> > What is the difference between these two equations? Why do we need to put a " . " behind numbers? Can you guys help me to under this usage?
> 
> 
> The dot is read as 'element-by-element' when used like this.  Study an easy example if it is still unclear to you.
> 
> A = magic(2)
> A^2
> A*A
> A.^2
> 
> Now, which one to use in your application will depend on what you are trying to do.
> 
> 
> 
> 
> M`Ekbe[W&MOkkakQ\Q9kkr[rTQ1[`kN`UXyMTMYk\NMZT[[SOUX,[QaMMYZ


For more information regarding MATLAB operators, go to the Section titled "Operators" at the following web address:

http://www.mathworks.com/access/helpdesk/help/techdoc/matlab.html