nhagen
自 2015 起处于活动状态
Followers: 0 Following: 0
Feeds
已回答
how can i create matrix of zeros and ones (randomly) sucj that the maximum sum of each row and coloumn =5
Hi, this is a lazy way to do it but it's random and it works : mat=eye(5); mat=repmat(mat,5,5); mat=mat(randperm(25...
how can i create matrix of zeros and ones (randomly) sucj that the maximum sum of each row and coloumn =5
Hi, this is a lazy way to do it but it's random and it works : mat=eye(5); mat=repmat(mat,5,5); mat=mat(randperm(25...
9 years 前 | 0