submat_noeval
by Garrett Euler
27 Mar 2008
(Updated 03 Apr 2008)
Returns the input matrix reduced along indicated dimensions (without eval)
|
Watch this File
|
| File Information |
| Description |
This is similar to the submat function I submitted earlier (file id 19324) except that it does not use EVAL. Accordingly it loses the flexibility offered by EVAL.
This is a function to aid/simplify access to subsections of a n-d matrix.
Y=SUBMAT_NOEVAL(X,DIM,LIST) creates a matrix Y that is the matrix X reduced along dimension DIM to the indices in LIST. If DIM is a list of dimensions, LIST is used to reduce each dimension.
Y=SUBMAT_NOEVAL(X,DIM1,LIST1,DIM2,LIST2,...) allows for access to multiple dimensions independently. |
| Acknowledgements |
The author wishes to acknowledge the following in the creation of this submission:
submat
This submission has inspired the following:
subarray
|
| MATLAB release |
MATLAB 7.5 (R2007b)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Comments and Ratings (3) |
| 31 Mar 2008 |
Duane Hanselman
|
|
|
| 03 Apr 2008 |
Jos x@y.z
|
|
|
| 03 Apr 2008 |
Garrett Euler
|
|
|
| Updates |
| 31 Mar 2008 |
Name change and updated description. |
| 03 Apr 2008 |
Updated using suggestions from Jos. |
|
Contact us at files@mathworks.com