
6 Editing and Debugging M-Files
collatzplot(6)
7 To make debugging easier, you ran collatzplot for a small value of m.
Now that you know it works correctly, run
collatzplot for a larger va lue
to produce more interesting results. Before doing so, you might want to
disableoutputforthelineyoujustaddedinstep6,line19of
collatz.m,by
adding a semicolon to the end of the line so it appears as
sequence;
Then run
collatzplot(500)
6-124
Komentáře k této Příručce