2D non-Square Matrix to 2D square matrix

 Respuesta aceptada

madhan ravi
madhan ravi el 27 de Abr. de 2019
Editada: madhan ravi el 27 de Abr. de 2019
Wanted = nan(length(A));
Wanted(1:numel(A)) = A

3 comentarios

Manoj Kumar
Manoj Kumar el 27 de Abr. de 2019
In case if we want to insert zero in place of NaN then ??
madhan ravi
madhan ravi el 27 de Abr. de 2019
instead of nan() use zeros()
Manoj Kumar
Manoj Kumar el 30 de Abr. de 2019
Thanks a lot !

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Creating and Concatenating Matrices en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 27 de Abr. de 2019

Comentada:

el 30 de Abr. de 2019

Community Treasure Hunt

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

Start Hunting!

Translated by