
Ved Prakash
Followers: 0 Following: 0
Feeds
已回答
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}(...
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}(...
5 years 前 | 0