Reshape 1D to 2D with Balance
버전 1.1.0.0 (2.64 KB) 작성자:
Dr. Murtaza Ali Khan
Reshapes 1D array to 2D array with size of rows and columns of B is balance
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
인용 양식
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. 검색 날짜: .
MATLAB 릴리스 호환 정보
개발 환경:
R14SP2
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux카테고리
Help Center 및 MATLAB Answers에서 Matrices and Arrays에 대해 자세히 알아보기
태그
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!