help-octave
[Top][All Lists]
Advanced

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

Re: max([],1)


From: Tom Holroyd (NIH/NIMH) [E]
Subject: Re: max([],1)
Date: Tue, 12 Jun 2007 18:49:57 -0400
User-agent: Thunderbird 1.5.0.10 (X11/20070301)

Matlab 7.2 says,

max (1, zeros (0, 10))
ans =
  Empty matrix: 0-by-10
max (1, zeros (10, 0))
ans =
  Empty matrix: 10-by-0
max (zeros (0, 10), 1)
ans =
  Empty matrix: 0-by-10
max (zeros (10, 0), 1)
ans =
  Empty matrix: 10-by-0

John W. Eaton wrote:

What does Matlab do with things like

  max (1, zeros (0, 10))
  max (1, zeros (10, 0))
  max (zeros (0, 10), 1)
  max (zeros (10, 0), 1)


reply via email to

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