|
|
| File Information |
| Description |
This project demonstrates a simple example of extracting a 2-dim slice of a 3-dim matrix stored in a MAT file without needing to read in the entire MAT file. This may be useful when the full 3-dim matrix is large and uses to much MATLAB memory and only individual 2-dim slices are needed at any given time. The user can extract slices at any index along all 3 dimensions.
There is a significant restriction:
1) Requires that the MAT file is stored in the version 6 format with no compression (using -v6 option in "save")
The implementation uses the "where" function written by Malcolm Lidierth. His code is included in this zip file.
Stuart McGarrity was an invaluable resource in the inspiration and implementation of this example.
See the included Readme.doc file for more information |
| Acknowledgements |
The author wishes to acknowledge the following in the creation of this submission:
MAT-file utilities
|
| MATLAB release |
MATLAB 7.2 (R2006a)
|
| Zip File Content |
|
| Other Files |
3DCubeSliceDemo.m, ByteAlign.m, GetSmallDataElement.m, license.txt, MATOpen.m, ReadCubeSlice.m, ReadCubeSlice_orig.m, Readme.doc, sizeof.m, slice_index_set.m, StandardMiCodes.m, StandardMxCodes.m, VarRename.m, where.m
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
|
MATLAB Central Terms of Use
NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for
all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content.
Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available
via MATLAB Central.
Read the complete Terms prior to use.
Contact us at files@mathworks.com