Code covered by the BSD License  

Highlights from
3D Cube Slice

5.0

5.0 | 1 rating Rate this file 3 Downloads (last 30 days) File Size: 21.26 KB File ID: #17992

3D Cube Slice

by Oren Rosen

 

13 Dec 2007 (Updated 13 Dec 2007)

Enables reading 2 dim slices of 3 dim matrix stored in MAT file

| Watch this File

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:
Project Waterloo File and Matrix Utilities

MATLAB release MATLAB 7.2 (R2006a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
08 Jun 2011 Utsav  
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
data import Oren Rosen 22 Oct 2008 09:39:08
data export Oren Rosen 22 Oct 2008 09:39:08
mat file Oren Rosen 22 Oct 2008 09:39:08
multidminesion matrix extraction Oren Rosen 22 Oct 2008 09:39:08

Contact us at files@mathworks.com