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!