New answers tagged

0

A solution not efficient but it works and it is easy to follow : size_matrix = 5 %% m_ones = ones(size_matrix,size_matrix) %% create n * n matrix m_idx_uper = triu(m_ones,1) %% get index uper part rann = rand(size_matrix,size_matrix) %% random positive values upper = rann .* m_idx_uper %% upper part of the final matrix lower = (1./upper)' ...



Top 50 recent answers are included