Results 1 to 2 of 2

Math Help - MATLAB programme

  1. #1
    Newbie
    Joined
    Sep 2011
    Posts
    10

    MATLAB programme

    Hi,

    I'm pretty new with matlab programming. Perhaps someone could help me with the following:

    "Let D be an NN matrix. The element d
    ij (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."

    Please help.

    kind regards,

    Moljka
    Follow Math Help Forum on Facebook and Google+

  2. #2
    Grand Panjandrum
    Joined
    Nov 2005
    From
    someplace
    Posts
    14,972
    Thanks
    4

    Re: MATLAB programme

    Quote Originally Posted by moljka View Post
    Hi,

    I'm pretty new with matlab programming. Perhaps someone could help me with the following:

    "Let D be an NN matrix. The element d
    ij (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."

    Please help.

    kind regards,

    Moljka
    Start by writing functions PascalSum(i) that calculates the sum of all the elements of the Pascal matrix of order i, and MagicSum(j) that calculates the sum of all the elements of Magic matrix of order j.

    CB
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. Matlab
    Posted in the Math Software Forum
    Replies: 1
    Last Post: April 16th 2010, 04:11 AM
  2. matlab programme too long to run
    Posted in the Math Software Forum
    Replies: 1
    Last Post: May 30th 2009, 10:24 PM
  3. FUN with Matlab
    Posted in the Math Software Forum
    Replies: 1
    Last Post: February 23rd 2009, 08:31 AM
  4. MATLAB
    Posted in the Math Software Forum
    Replies: 4
    Last Post: September 25th 2008, 01:47 PM
  5. Written programme in mathematica but didn't work
    Posted in the Math Software Forum
    Replies: 0
    Last Post: April 4th 2008, 12:49 AM

Search Tags


/mathhelpforum @mathhelpforum