X-Mozilla-Status: 0001 X-Mozilla-Status2: 00000000 Message-ID: <39BE9F39.CF99A591@umich.edu> Date: Tue, 12 Sep 2000 17:25:13 -0400 From: Eric Durant X-Mailer: Mozilla 4.7 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.soft-sys.matlab Subject: Re: if (1 | []) : inconsistencies? References: <39BE5CB1.7E8FD4E9@umich.edu> <39BE73F0.F369297A@sandia.gov> <39BE7EA0.E8603284@umich.edu> <39BE9676.A62CEED0@sandia.gov> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit >From page 2-12 of the Function Reference: "They [logical operators] work element-wise on arrays, [...]". An empty array is an array, so I believe this applies. Page 2-399 gives examples (there are typos in some explanations, but the examples seem correct). -- Eric Durant http://edurant.com/ Erik Reckase wrote: >I don't see any behavior defined for empty matrix on page 2-12 - just >for zeros and ones. Perhaps I'm misunderstanding, too? Regardless, >it does seem to be strange behavior. Any MathWorks folks care to >comment? > > --Erik