Reshape 1D to 2D with Balance

Reshapes 1D array to 2D array with size of rows and columns of B is balance
1,9K download
Aggiornato 9 lug 2009

Visualizza la licenza

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

Cita come

Dr. Murtaza Ali Khan (2024). Reshape 1D to 2D with Balance (https://www.mathworks.com/matlabcentral/fileexchange/10885-reshape-1d-to-2d-with-balance), MATLAB Central File Exchange. Recuperato .

Compatibilità della release di MATLAB
Creato con R14SP2
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS Linux
Categorie
Scopri di più su Matrices and Arrays in Help Center e MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Versione Pubblicato Note della release
1.1.0.0

BSD License

1.0.0.0