REPLICATE
by Mark Ruzon
04 Dec 2008
(Updated 08 Dec 2008)
Create a larger array by expanding each element of an array into a subarray.
|
Watch this File
|
| File Information |
| Description |
REPLICATE is a companion to REPMAT, but instead of tiling a larger array with the input array, REPLICATE does the equivalent of calling REPMAT on each individual element and then tile the results together. It is faster than looping over each element. It supports 2D and 3D arrays.
|
| Acknowledgements |
This submission has inspired the following:
EXPAND
|
| 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.
|
| Updates |
| 04 Dec 2008 |
Bug fix: renamed input parameter. |
| 08 Dec 2008 |
Sped up 2D case using KRON. Thanks go to Jos. |
|
Contact us at files@mathworks.com