Effacer les filtres
Effacer les filtres

2D non-Square Matrix to 2D square matrix

3 vues (au cours des 30 derniers jours)
Manoj Kumar
Manoj Kumar le 27 Avr 2019
Commenté : Manoj Kumar le 30 Avr 2019
How to make a matrix A with diamension m x n , m,n>1 to a square matrix ?

Réponse acceptée

madhan ravi
madhan ravi le 27 Avr 2019
Modifié(e) : madhan ravi le 27 Avr 2019
Wanted = nan(length(A));
Wanted(1:numel(A)) = A
  3 commentaires
madhan ravi
madhan ravi le 27 Avr 2019
instead of nan() use zeros()
Manoj Kumar
Manoj Kumar le 30 Avr 2019
Thanks a lot !

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Creating and Concatenating Matrices dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by