Community Profile

photo

Ved Prakash


Last seen: 3 years ago Active since 2020

Followers: 0   Following: 0

Statistics

  • First Answer

View badges

Feeds

View by

Answered
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
function matrix=sparse2matrix(P) r=P{1}(1); c=P{1}(2); D=P{2}*ones(r,c); for i=3:length(P) D(P{i}(1),P{i}(2))=P{i}(...

4 years ago | 0