Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Matlab programming problem

  1. Jun 3, 2008 #1
    I need to design a matrix of running variables (m x n) that displays an array of ones and zeros in the following order;

    1 0 1 0
    1 0 1 0
    1 0 1 0
    1 0 1 0

    and

    1 0 1 0
    0 1 0 1
    1 0 1 0
    0 1 0 1

    So the values of m and n can be any value.

    Any suggestions?

    Thanks
     
  2. jcsd
  3. Jun 4, 2008 #2

    chroot

    User Avatar
    Staff Emeritus
    Science Advisor
    Gold Member

    We're not going to do your homework for you. Please show us your attempted solutions, and explain why you're stuck.

    - Warren
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?



Similar Discussions: Matlab programming problem
  1. Matlab programming (Replies: 0)

  2. Programming in Matlab (Replies: 4)

Loading...