T = ones(5);
D = 0.9;Deg = D*eye(5);Mn = zeros(5);N = [0 0 0 0 0;0 0 0.2 0 0;0 0.2 0 0.2 0;0 0 0.2 0 0;0 0 0 0 0];M1 = (T - (Deg * (T-Mn) - (N*Mn)));M2 = (T - (Deg * (T-M1) - (N*M1)));
Hello all,
Above are the 5×5 variables and rule im trying to simulate. Im relatively new to MatLab, and im wondering if theres any simple way of replacing the likes of M1 and M2, to give me all the ranges of simulated answers (Mn), to whatever range I want?
Thanks!
Best Answer