Code covered by the BSD License  

Highlights from
sarr: a pedestrian array splitter

Be the first to rate this file! 1 Download (last 30 days) File Size: 1.99 KB File ID: #24865
image thumbnail

sarr: a pedestrian array splitter

by us

 

28 Jul 2009

SARR splits a 2D array into 3D adjacent subarrays

| Watch this File

File Information
Description

SARR splits a 2D array into adjacent subarrays
in COL -> ROW order.

the subarrays are collected in a 3D array
of size [SR,SC,SP], which facilitates
block processing.

the engine exclusively uses RESHAPE and PERMUTE
to keep memory requirements low.

SARR ends with an error if the size of the subarrays
does not fit into the size of the array.

see
> help sarr
for help and an example for this self-explanatory snippet

MATLAB release MATLAB 7.8 (R2009a)
Other requirements will work under older MATLAB versions
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
array us 28 Jul 2009 11:21:45
subarray us 28 Jul 2009 11:21:45
tiling us 28 Jul 2009 11:21:45
permute us 28 Jul 2009 11:21:45
reshape us 28 Jul 2009 11:21:45

Contact us at files@mathworks.com