Re: Array half empty or half full?
- From: "gwhite" <gwhite@xxxxxx>
- Date: 10 Apr 2006 16:13:01 -0700
so what exactly don't you like about this?
I don't have a code problem and I don't dislike anything about it. I
was wondering if there was a reason for it. So far, you and Loren are
simply saying it is definitional rather than the product of a
particular rationale other than being consistant. (Which is a good
reason by itself.)
I'm wondering if there is a practical *non-trivial* difference between
"empty 0x0," "empty 0x1," "empty 0x2," "empty 1x0," or "empty 0x0x1"
"and on and on?
As far as how *I* use MATLAB goes, it does not ever seem to matter (it
is trivial) because "empty" means there is nothing there to be
extracted, regardless of the size report. I have used 0x0 empty arrays
intentionally, and only created the 0x1 (or other non-0x0 empty), I
guess, by accident. It did not affect my code since my conditional was
basically ISEMPTY.
I suppose I can envision code being sensitive to the report if, of
course, it uses size reports in a particular/peculiar way. (Maybe I'm
starting to answer my own question.) But empty in any dimension means
there is "nothing there" to be pulled out, aside from the
dimensionality itself. I have never used MATLAB in a way where this
mattered, and so am curious if there is a way it is used by someone
where it does actually matter.
.
- Follow-Ups:
- Re: Array half empty or half full?
- From: Loren Shure
- Re: Array half empty or half full?
- From: helper
- Re: Array half empty or half full?
- References:
- Array half empty or half full?
- From: gwhite
- Re: Array half empty or half full?
- From: Titus Edelhofer
- Array half empty or half full?
- Prev by Date: Re: Square Law Envelope Detector
- Next by Date: Re: Using MATLAB to filter data
- Previous by thread: Re: Array half empty or half full?
- Next by thread: Re: Array half empty or half full?
- Index(es):
Relevant Pages
|
Loading