I replied to Matt only ARGH!
-- Forwarded message --
From: Andrea Ambu
Date: 25 January 2011 22:36
Subject: Re: numpy/matlab compatibility
To: Matt Funk
On Tue, Jan 25, 2011 at 9:13 PM, Matt Funk wrote:
>
> Hi,
>
> i am fairly new to python. I was wond
On 1/25/11 2:13 PM, Matt Funk wrote:
Hi,
i am fairly new to python. I was wondering of the following is do-able
in python:
1) a = rand(10,1)
2) Y = a
3) mask = Y> 100;
4) Y(mask) = 100;
5) a = a+Y
Basically i am getting stuck on line 4). I was wondering if it is
possible or not with python?
(
On 25/01/2011 20:13, Matt Funk wrote:
1) a = rand(10,1)
2) Y = a
3) mask = Y> 100;
4) Y(mask) = 100;
5) a = a+Y
Basically i am getting stuck on line 4). I was wondering if it is
possible or not with python?
(The above is working matlab code)
I don't understand this matlab code completely (I w
On Tue, 25 Jan 2011 13:13:02 -0700, Matt Funk wrote:
> Hi,
>
> i am fairly new to python. I was wondering of the following is do-able
> in python:
>
> 1) a = rand(10,1)
> 2) Y = a
> 3) mask = Y > 100;
> 4) Y(mask) = 100;
> 5) a = a+Y
>
> Basically i am getting stuck on line 4). I was wondering
Hi,
thank you Andrea. That is exactly what i was looking for. Great.
Andrea explained what the Matlab code does below. Sorry about the
confusion.
I was under the impression that numpy was leaning very heavily on Matlab
for its syntax and thus i assumed that
Matlab was mostly known for those using
On Tue, Jan 25, 2011 at 3:13 PM, Matt Funk wrote:
> 1) a = rand(10,1)
> 2) Y = a
> 3) mask = Y > 100;
> 4) Y(mask) = 100;
> 5) a = a+Y
>
> Basically i am getting stuck on line 4). I was wondering if it is
> possible or not with python?
> (The above is working matlab code)
>
For those of us who d
Hi,
i am fairly new to python. I was wondering of the following is do-able
in python:
1) a = rand(10,1)
2) Y = a
3) mask = Y > 100;
4) Y(mask) = 100;
5) a = a+Y
Basically i am getting stuck on line 4). I was wondering if it is
possible or not with python?
(The above is working matlab code)
than