====== Differences ====== This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
gibson:teaching:fall-2013:math445:lab10 [2013/11/13 14:13] gibson |
gibson:teaching:fall-2013:math445:lab10 [2013/11/13 14:19] (current) gibson |
||
---|---|---|---|
Line 47: | Line 47: | ||
spy(X,'bs'); | spy(X,'bs'); | ||
- | |||
A more complicated but ultimately more satisfying way to plot the live cells | A more complicated but ultimately more satisfying way to plot the live cells | ||
Line 60: | Line 59: | ||
</code> | </code> | ||
- | Whatever method you use, follow it with this code | + | Use this latter code unless you can't get your Game of Life code to run correctly. |
+ | In that case, use the simpler ''spy'' plotting code to debug, and then replace it | ||
+ | with ''find'' and ''plot'' once your code is running correctly. | ||
<code> | <code> | ||
Line 70: | Line 71: | ||
</code> | </code> | ||
- | Please briefly describe what each line of your code does. Use the ''help'' function or menu | + | Please briefly describe what each line of your code does. Use the ''help'' |
- | if you're not sure. | + | function or menu if you're not sure. |
You may want to change the value of ''MarkerSize'' to make your plots look | You may want to change the value of ''MarkerSize'' to make your plots look | ||
better, or change the argument of the ''pause'' function to make the code | better, or change the argument of the ''pause'' function to make the code | ||
Line 136: | Line 137: | ||
- | Turn in your completed code and the answers to the above questions. | + | Turn in your completed code ''mylife.m'' and ''mylife2.m'' codes and the answers to the above questions. |