Filter löschen
Filter löschen

2D non-Square Matrix to 2D square matrix

3 Ansichten (letzte 30 Tage)
Manoj Kumar
Manoj Kumar am 27 Apr. 2019
Kommentiert: Manoj Kumar am 30 Apr. 2019
How to make a matrix A with diamension m x n , m,n>1 to a square matrix ?

Akzeptierte Antwort

madhan ravi
madhan ravi am 27 Apr. 2019
Bearbeitet: madhan ravi am 27 Apr. 2019
Wanted = nan(length(A));
Wanted(1:numel(A)) = A
  3 Kommentare
madhan ravi
madhan ravi am 27 Apr. 2019
instead of nan() use zeros()
Manoj Kumar
Manoj Kumar am 30 Apr. 2019
Thanks a lot !

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Creating and Concatenating Matrices finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by