Hello,(adsbygoogle = window.adsbygoogle || []).push({});

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

**Physics Forums - The Fusion of Science and Community**

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Programming in Matlab

Loading...

Similar Threads for Programming Matlab | Date |
---|---|

MATLAB How to program this in Matlab | Feb 28, 2018 |

MATLAB Does anyone had this plotting problem with MATLAB? | Dec 23, 2017 |

How do I extract elements of a random matrix masked by a circle with its center at A(15,26) | Sep 15, 2016 |

MATLAB Crank-Nicholson in 2D with MATLAB | May 23, 2016 |

MATLAB how to automatically read a number of files | Oct 29, 2015 |

**Physics Forums - The Fusion of Science and Community**