Matrix array in a strange format

 Respuesta aceptada

Adam
Adam el 10 de Ag. de 2023

1 voto

It's a sparse array so that is standard.
You can use:
full( kio )
to convert to a full (standard) matrix if you wish, though be aware that it will take more memory. Obviously for a 78x78 matrix this is not an issue though.

1 comentario

John D'Errico
John D'Errico el 10 de Ag. de 2023
Adam is completely correct of course. I would only add the additional point that a sparse 78x78 matrix is REALLY small these days. Any computations will not be that much faster for such a small matrix. Sparse matrix computations might even be slower. It is worth testing for your matrix.

Iniciar sesión para comentar.

Más respuestas (1)

Michael
Michael el 10 de Ag. de 2023
Your matrix "val" is a sparse matrix. You can convert it to a full storage matrix with the function "full".
A = full(val)

Categorías

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

Productos

Versión

R2022b

Etiquetas

Preguntada:

Joe
el 10 de Ag. de 2023

Comentada:

el 10 de Ag. de 2023

Community Treasure Hunt

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

Start Hunting!

Translated by