필터 지우기
필터 지우기

How to pause the simulation with a command line

조회 수: 14 (최근 30일)
K VdB
K VdB 2016년 10월 10일
댓글: Preethi 2016년 10월 12일
It's probably simple but i can not find the solution.
When a code is running, you can pause it by clicking the pause button in the ribbon above (two blue lines).
Afterwards you can continue the simulation by clicking on the continue button (at the same spot).
I want to do the same action by commanding it in the script (at a certain command line).
When I type 'pause' in the command line, the simulation will pause but it will continue when I press any key. I want to be able to change some variables while it is paused and then press the continue button to continue the simulation.
.
kind regards, K
  댓글 수: 1
KSSV
KSSV 2016년 10월 10일
I think using pause is an bad idea..instead you change them in the code itself.

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

답변 (1개)

Preethi
Preethi 2016년 10월 10일
hi,
you can use breakpoints at places where you want to pause, you can change the values and then continue.
  댓글 수: 2
K VdB
K VdB 2016년 10월 10일
hi, thanks for the answer
I know about the break points. I am working with them currently The problem is that the breakpoints disappear when you close and reopen the program. And because I have a lot of breakpoints it's quite a chore going through the script and resetting them.
greets
Preethi
Preethi 2016년 10월 12일
hi,
once you set breakpoints and save the file the breakpoints will be retained. Which version are you using?

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

카테고리

Help CenterFile Exchange에서 Debugging and Analysis에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by