Azzera filtri
Azzera filtri

2D non-Square Matrix to 2D square matrix

3 visualizzazioni (ultimi 30 giorni)
How to make a matrix A with diamension m x n , m,n>1 to a square matrix ?

Risposta accettata

madhan ravi
madhan ravi il 27 Apr 2019
Modificato: madhan ravi il 27 Apr 2019
Wanted = nan(length(A));
Wanted(1:numel(A)) = A
  3 Commenti
madhan ravi
madhan ravi il 27 Apr 2019
instead of nan() use zeros()

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Creating and Concatenating Matrices in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by