moljka
- 2
- 0
Hello,
I need help with the following:
"Let D be an N×N matrix. The element dij (i=1,…,N;j=1,…,N) of D is 1 if the sum of all the elements of the Pascal matrix of order i equals the sum of all the elements of Magic matrix of order j, and 0 otherwise.
Write a Matlab programme that constructs D and that counts the number of ones in D for N is 100."
I am new to MATLAB programming (this will be the first time writing a MATLAB programme). Please help me out.
Kind regards,
Moljka
I need help with the following:
"Let D be an N×N matrix. The element dij (i=1,…,N;j=1,…,N) of D is 1 if the sum of all the elements of the Pascal matrix of order i equals the sum of all the elements of Magic matrix of order j, and 0 otherwise.
Write a Matlab programme that constructs D and that counts the number of ones in D for N is 100."
I am new to MATLAB programming (this will be the first time writing a MATLAB programme). Please help me out.
Kind regards,
Moljka