File Exchange

image thumbnail

Reshape 1D to 2D with Balance

version 1.1.0.0 (2.64 KB) by Dr. Murtaza Khan
Reshapes 1D array to 2D array with size of rows and columns of B is balance

0 Downloads

Updated 09 Jul 2009

View License

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

Comments and Ratings (0)

Updates

1.1.0.0

BSD License

MATLAB Release Compatibility
Created with R14SP2
Compatible with any release
Platform Compatibility
Windows macOS Linux