help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: max([],1)


From: John W. Eaton
Subject: Re: max([],1)
Date: Wed, 13 Jun 2007 02:29:26 -0400

On 13-Jun-2007, David Bateman wrote:

| And Octave without this patch does
| 
| octave:1>   max (1, zeros (0, 10))
| ans =  1
| octave:2>   max (1, zeros (10, 0))
| ans =  1
| octave:3>   max (zeros (0, 10), 1)
| ans = [](0x10)
| octave:4>   max (zeros (10, 0), 1)
| ans = [](10x0)
| 
| and with it does
| 
| octave:1>   max (1, zeros (0, 10))
| ans = [](0x10)
| octave:2>   max (1, zeros (10, 0))
| ans = [](10x0)
| octave:3>   max (zeros (0, 10), 1)
| ans = [](0x10)
| octave:4>   max (zeros (10, 0), 1)
| ans = [](10x0)
| 
| I think the patch is compatible,

OK.

| I just am not sure its the best thing to do..

I'm not sure either, but let's go with the patch.

Thanks,

jwe


reply via email to

[Prev in Thread] Current Thread [Next in Thread]