execution a program step by step

조회 수: 8 (최근 30일)
som
som 2011년 10월 14일
편집: Stephen23 2017년 12월 15일
Hi all I have already written a program that its some parts doesn't give me desirable answers. I want to run this program line by line and check the results step by step.
How can I do???
Best

답변 (1개)

Fangjun Jiang
Fangjun Jiang 2011년 10월 14일
Open you .m file in M-editor, move your cursor to a line and press F12. You will see a red dot in that line just left of the line number. You can click the place to turn on/off the break point too. Then press F5 to run the code. Click menu Debug for more options.
  댓글 수: 3
Walter Roberson
Walter Roberson 2017년 12월 15일
dbstep to execute one line.
dbstep in to step into a function being called on the current line.
Stephen23
Stephen23 2017년 12월 15일
편집: Stephen23 2017년 12월 15일
To step though code while debugging use the buttons or commands shown in the documentation:
Because the keyboard shortcuts can be changed you should look these up on your installed MATLAB (see the link above). Try F10.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by