Be the first to rate this file! 3 Downloads (last 30 days) File Size: 2.64 KB File ID: #10885
image thumbnail

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.
Please login to add a comment or rating.
Updates
09 Jul 2009

BSD License

Tag Activity for this File
Tag Applied By Date/Time
reshape Dr. Murtaza Khan 22 Oct 2008 08:23:27
vector Dr. Murtaza Khan 22 Oct 2008 08:23:27
1d Dr. Murtaza Khan 22 Oct 2008 08:23:27
2d Dr. Murtaza Khan 22 Oct 2008 08:23:27
balance Dr. Murtaza Khan 22 Oct 2008 08:23:27

Contact us at files@mathworks.com