Community Profile

photo

AYUSH GURTU


Last seen: 2 years ago Active since 2019

Statistics

  • First Answer

View badges

Content Feed

View by

Answered
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...

3 years ago | 4

Answered
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

3 years ago | 11

Answered
matrix related matlab query
function [mmr, mmm] = minimax(M) mmr = (max(M,[],2)-min(M,[],2))'; mmm = max(M(:))-min(M(:)); end

3 years ago | 0