Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: usage of " . " in these two equations !!!
Date: Thu, 19 Feb 2009 16:51:02 +0000 (UTC)
Organization: CSU
Lines: 35
Message-ID: <gnk2ll$mkr$1@fred.mathworks.com>
References: <gnftna$jud$1@fred.mathworks.com> <gnk0v9$rr1$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1235062262 23195 172.30.248.37 (19 Feb 2009 16:51:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 19 Feb 2009 16:51:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 951788
Xref: news.mathworks.com comp.soft-sys.matlab:519494


Here is my test as below. By the way, I deeply thank those who advice me in Matlab.

So, I need to put a "." before any divides, not after scalers.
 

>> ec_es_06=[1;2;3;4;5]
>> ec_p_06=[4;5;6;7;8]
>> nodot=0.622*ec_es_06/(ec_p_06-0.378*ec_es_06)

nodot =

         0         0         0         0    0.1018
         0         0         0         0    0.2036
         0         0         0         0    0.3054
         0         0         0         0    0.4072
         0         0         0         0    0.5090
>> number_dot=(0.622.*ec_es_06)./(ec_p_06-0.378.*ec_es_06)

number_dot =

    0.1717
    0.2931
    0.3835
    0.4534
    0.5090

>> divide_dot=(0.622.*ec_es_06)./(ec_p_06-0.378*ec_es_06)

divide_dot =

    0.1717
    0.2931
    0.3835
    0.4534
    0.5090