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

조회 수: 1 (최근 30일)
TR RAO
TR RAO 2018년 7월 10일
답변: Guillaume 2018년 7월 10일
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?

답변 (1개)

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

카테고리

Help CenterFile Exchange에서 Sparse Matrices에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by