Clear Filters
Clear Filters

2D non-Square Matrix to 2D square matrix

3 views (last 30 days)
How to make a matrix A with diamension m x n , m,n>1 to a square matrix ?

Accepted Answer

madhan ravi
madhan ravi on 27 Apr 2019
Edited: madhan ravi on 27 Apr 2019
Wanted = nan(length(A));
Wanted(1:numel(A)) = A

More Answers (0)

Categories

Find more on Creating and Concatenating 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!