MATLAB POLYSPACE 7 Instalační příručka Strana 430

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 618
  • Tabulka s obsahem
  • ŘEŠENÍ PROBLÉMŮ
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 429
6 Editing and Debugging M-Files
1 Endthedebuggingsession. OnewaytodothisistoselectExit Debug
Mode from the Debug menu.
2 In collatzplot.m line 12, change the string plot_seq to seq_length(N)
and save the file.
3 Clear the breakpoints in collatzplot.m.Onewaytodothisisbytyping
dbclear all in collatzplot
in the Command Window.
4 Run collatzplot for m =3bytyping
collatzplot(3)
in the Command Window.
5 Verifytheresult.ThefigureshowsthatthelengthoftheCollatzseriesis1
when
n =1,2whenn = 2, and 8 when n =3,asexpected.
6-122
Zobrazit stránku 429
1 2 ... 425 426 427 428 429 430 431 432 433 434 435 ... 617 618

Komentáře k této Příručce

Žádné komentáře