1. Limited time only! Sign up for a free 30min personal tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Homework Help: Matlab Help, for loop problem

  1. Mar 7, 2013 #1
    Hi guys, I have been given a problem to complete, but at the moment my progress has been minimal.

    I have only had two classes on using Matlab since September, thus I am not very experienced.

    To complete this problem I know I need to use nested For loops but I just don't know where to start, so any guidance would be appreciated very much.
  2. jcsd
  3. Mar 8, 2013 #2
    Hello AASaunders,

    I would say it would be easier with 2 nested "while" loops.

    The outer one to make sure you get a few wins, the inner one to break free of the game once you lose or win.

Share this great discussion with others via Reddit, Google+, Twitter, or Facebook

Have something to add?
Draft saved Draft deleted