"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.
"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:
"Kuo-Hsien" <mchangks@hotmail.com> wrote in message <gnftna$jud$1@fred.mathworks.com>...
> Dear all,
> I got the following error message:
>
> ??? Error using ==> mrdivide
> Out of memory. Type HELP MEMORY for your options.
>
> Error in ==> weather4Elora at 57
> ec_sh_06=0.622*ec_es_06/(ec_p_06-0.378*ec_es_06);
>
>
> However, I thought I probably the equation need to be modified to the following one.
> ec_sh_06=(0.622.*ec_es_06)./(ec_p_06-0.378.*ec_es_06);
>
> 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?
>
> Thanks,
> Michael
Besides what others have already replied, you don't "need" the dots behind numbers (scalars). But you do "need" them before the slash (divide) in your case above.
Subject: usage of " . " in these two equations !!!
NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for
all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content.
Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available
via MATLAB Central.
Read the complete Terms prior to use.