Feeds
提问
How to create a random adjacency matrix with a changeable degree and number of players using only for-loops, and if-statements?
clear all clc d=2 n=10; A = zeros(n,n); % Create initial matrix for i = 1:n for j = 1:n if sum(A(i,:))==...
3 years 前 | 1 个回答 | 0