Borrar filtros
Borrar filtros

How to assign a sparse matrix of dimension n x n into a 3d sparse matrix

5 visualizaciones (últimos 30 días)
TR RAO
TR RAO el 10 de Jul. de 2018
Respondida: Guillaume el 10 de Jul. de 2018
For example S0=eye(V), where V= number of nodes in a graph & S(:,:,1)=S0 (assignment of S0 into S). How I can do the same representation when both S0 and S are sparse matrices?

Respuestas (1)

Guillaume
Guillaume el 10 de Jul. de 2018
Matlab sparse matrices are a 2D affair only,I'm afraid. There are FEX submissions that implement 3d sparse matrices however, e.g. ndSparse

Categorías

Más información sobre Sparse Matrices en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by