AYUSH GURTU
Followers: 0 Following: 0
Feeds
已回答
I get an error, what's wrong? on Sparse matrix logic and answer
function [matrix]=sparse2matrix(incell) S=size(incell); q=S(2)-2; msize=incell{1}; mdef=incell{2}; matrix=repmat(mdef,msize...
I get an error, what's wrong? on Sparse matrix logic and answer
function [matrix]=sparse2matrix(incell) S=size(incell); q=S(2)-2; msize=incell{1}; mdef=incell{2}; matrix=repmat(mdef,msize...
5 years 前 | 4
已回答
how to replace elements in top third, middle third, and bottom third of matix
function T = trio (n, m) T = randi (10, (3 * n) , m); T (1:n,:) = 1; T ((n+(1:n)),:) = 2; T (n+(n+(1:n)):end,:) = 3; end
how to replace elements in top third, middle third, and bottom third of matix
function T = trio (n, m) T = randi (10, (3 * n) , m); T (1:n,:) = 1; T ((n+(1:n)),:) = 2; T (n+(n+(1:n)):end,:) = 3; end
5 years 前 | 11
已回答
matrix related matlab query
function [mmr, mmm] = minimax(M) mmr = (max(M,[],2)-min(M,[],2))'; mmm = max(M(:))-min(M(:)); end
matrix related matlab query
function [mmr, mmm] = minimax(M) mmr = (max(M,[],2)-min(M,[],2))'; mmm = max(M(:))-min(M(:)); end
5 years 前 | 0