What is the . symbol in matlab, how to change it to python
<pre><code>Xnorm = (X-repmat(mu,m,1))./repmat(sigma,m,1);
</code></pre>

<p>what does the . here do? And if I want to change it to the python, what should I do? </p>

<p>IN MATLAB it's called <a href="https://www.mathworks.com/help/fixedpoint/ref/rdivide.html" rel="nofollow"><code>rdivide</code> - right array element-wise division</a>.</p>

<pre><code>&gt;&gt; [1,2;3,4]./[5,6;7,8]

ans =

    0.2000    0.3333
    0.4286    0.5000
</code></pre>

<p>Python equivalent is <a href="http://docs.scipy.org/doc/numpy/reference/generated/numpy.divide.html#numpy-divide" rel="nofollow"><code>numpy.divide</code></a>.</p>

<pre><code>&gt;&gt;&gt; from __future__ import division
&gt;&gt;&gt; np.array([[1,2],[3,4]]) / np.array([[5,6],[7,8]])
array([[ 0.2       ,  0.33333333],
       [ 0.42857143,  0.5       ]])
</code></pre>

python matlab