Brian Blais wrote:
>>> this should definitely be in the Numpy for Matlab users
>>> page, http://www.scipy.org/NumPy_for_Matlab_Users, right
>>> after the line:
>>> Matlab Numpy Notes
Brian Blais wrote:
> I did put it in! (did it disappear or something?) I also modified the
> prev
On Aug 18, 2008, at 12:04 , Alan G Isaac wrote:
this should definitely be in the Numpy for Matlab users
page, http://www.scipy.org/NumPy_for_Matlab_Users, right
after the line:
Matlab Numpy Notes
I did put it in! (did it disappear or something?) I also modified
the previous
> this should definitely be in the Numpy for Matlab users
> page, http://www.scipy.org/NumPy_for_Matlab_Users, right
> after the line:
> Matlab Numpy Notes
Good form is to make that change yourself when you get
useful advice. But I did it this time.
Cheers,
Alan Isaac
_
On Sat, Jul 26, 2008 at 8:05 AM, Brian Blais <[EMAIL PROTECTED]> wrote:
> cool. this should definitely be in the Numpy for Matlab users
> page, http://www.scipy.org/NumPy_for_Matlab_Users, right after the line:
> Matlab Numpy Notes
By all means, please put it in, it's a wiki after al
On Jul 26, 2008, at Jul 26:10:12 AM, Alan G Isaac wrote:
This is probably the most asked single question.
Use ``ix_``. Example below.
cool. this should definitely be in the Numpy for Matlab users page,
http://www.scipy.org/NumPy_for_Matlab_Users, right after the line:
Matlab Numpy
This is probably the most asked single question.
Use ``ix_``. Example below.
Cheers,
Alan Isaac
>>> import numpy as np
>>> a=np.floor(np.random.rand(5,5)*10)
>>> ind=[1,3]
>>> a[np.ix_(ind,ind)]+=100
>>> a
array([[ 9.,1.,2.,8.,5.],
[ 2., 102.,7., 109.,0.],
26-יולי-08 16:35
אל: Discussion of Numerical Python
נושא: [Numpy-discussion] indexing (compared to matlab)
Hello,
I wanted to do the following thing that I do in Matlab (on a bigger
problem), setting the values of a part of a matrix with indexing:
>> a=floor(rand(5,5)*10) % make an e
Hello,
I wanted to do the following thing that I do in Matlab (on a bigger
problem), setting the values of a part of a matrix with indexing:
>> a=floor(rand(5,5)*10) % make an example matrix to work on
a =
2 4 7 9 8
6 9 2 5 2
6 3 5