| MATLAB Central > MATLAB Newsreader > indexing of a function's return |
|
|
|
Hi! |
|
Subject: indexing of a function's return From: John D'Errico Date: 10 Sep, 2008 11:26:02 Message: 2 of 9 |
|
"Norman " <norman.nospam.violet@tu-berlin.de> wrote in message <ga8a9i$jin$1@fred.mathworks.com>... |
|
Subject: indexing of a function's return From: Nick Clark Date: 10 Sep, 2008 11:35:02 Message: 3 of 9 |
|
My gut reaction is that most functions would require the whole output of the function to be calculated stored in memory anyway (especially something which is recursive like convolution or IIR filtering) even if you just wanted to "cherry pick" the value(s) required, meaning the overhead for indexing after generating the output really would be minute. |
|
Subject: indexing of a function's return From: Husam Aldahiyat Date: 10 Sep, 2008 11:37:01 Message: 4 of 9 |
|
You can use size(a,1) or size(a,2) for the length and width of a, but that's the only case I know/ |
|
Subject: indexing of a function's return From: Steve Amphlett Date: 10 Sep, 2008 11:43:03 Message: 5 of 9 |
|
"John D'Errico" <woodchips@rochester.rr.com> wrote in message <ga8asa$nv9$1@fred.mathworks.com>... |
|
Subject: indexing of a function's return From: Bruno Luong Date: 10 Sep, 2008 11:48:01 Message: 6 of 9 |
|
A bandage work-around is using subsref |
|
Subject: indexing of a function's return From: Bruno Luong Date: 10 Sep, 2008 12:09:02 Message: 7 of 9 |
|
Or Simply do this if you do not want automatic dimensional expansion indexing |
|
Subject: indexing of a function's return From: John D'Errico Date: 10 Sep, 2008 12:26:02 Message: 8 of 9 |
|
"Steve Amphlett" <Firstname.Lastname@Where-I-Work.com> wrote in message <ga8bs7$2ka$1@fred.mathworks.com>... |
|
Subject: indexing of a function's return From: Steven Lord Date: 10 Sep, 2008 12:39:11 Message: 9 of 9 |
|
|
A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.
| Tag Activity for This Thread | ||
|---|---|---|
| Tag | Applied By | Date/Time |
| indexing | Norman | 10 Sep, 2008 07:20:05 |
| return value | Norman | 10 Sep, 2008 07:20:05 |
| function | Norman | 10 Sep, 2008 07:20:05 |
Contact us at files@mathworks.com
