How do you reshape an array to preserve the order in each row of the original array?
조회 수: 3(최근 30일)
표시 이전 댓글
L'O.G. 2023년 3월 27일
답변: Bruno Luong 2023년 3월 27일
How do you reshape an array into a 1-dim column such that the first row of the original array is the first set of numbers in the column, followed by the numbers in the second row, and so on?
For example A = magic(3) should become:
B = [
Find more on Resizing and Reshaping Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!