Syed Zuhair Ali Razvi
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 mat=sparse2matrix(cellvec) m1=zeros(cellvec{1}); m2=cellvec{2}+m1; if length(cellvec)<=2 mat=m2; else for 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 mat=sparse2matrix(cellvec) m1=zeros(cellvec{1}); m2=cellvec{2}+m1; if length(cellvec)<=2 mat=m2; else for i...
4 years 前 | 0