Reshape 1D to 2D with Balance
by Dr. Murtaza Khan
27 Apr 2006
(Updated 09 Jul 2009)
Reshapes 1D array to 2D array with size of rows and columns of B is balance
|
Watch this File
|
| File Information |
| Description |
reshape1dto2dbalance.m
----------------------
If possible then reshapes 1D array (vector) 'A' into 2D array 'B' such that:
abs(NC-NR) is minimized
where
NR=number of rows in B
NC=number of columns B
Note: Elements of A are placed column-wise in B.
reshape1dto2dbalanceTest.m
--------------------------
A simple test program |
| MATLAB release |
MATLAB 7.0.4 (R14SP2)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Updates |
| 09 Jul 2009 |
BSD License |
|
Contact us at files@mathworks.com