Assignment support in Sparse Matrix
情報
この質問は閉じられています。 編集または回答するには再度開いてください。
古いコメントを表示
A sparse matrix is a large matrix with almost all elements of the same value (typically zero). The normal representation of a sparse matrix takes up lots of memory when the useful information can be captured with much less. A possible way to represent a sparse matrix is with a cell vector whose first element is a 2-element vector representing the size of the sparse matrix. The second element is a scalar specifying the default value of the sparse matrix. Each successive element of the cell vector is a 3-element vector representing one element of the sparse matrix that has a value other than the default. The three elements are the row index, the column index and the actual value. Write a function called sparse2matrix that takes a single input of a cell vector as defined above and returns the output argument called matrix, the matrix in its traditional form. Consider the following run:

Can somebody guide , have tried but was not able to understand how to attempt this problem.
Help is appreciated
1 件のコメント
paul mary
2019 年 3 月 21 日
Hello, did you figure it out? I have same problem.
採用された回答
その他の回答 (0 件)
この質問は閉じられています。
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!