Function finished to going to next
이전 댓글 표시
How i make sure that the function 1 is completely finished and the function 2 will be started normally in the second ordre after the 1. Thanks
댓글 수: 2
Walter Roberson
2013년 4월 7일
Is this referring to the parallel toolkit ?
Lila wagou
2013년 4월 8일
답변 (2개)
Jan
2013년 4월 8일
0 개 추천
You cannot control the activity of an external program from inside Matlab reliably. A soltuion would be to allow the external program to set a kind of flag, when it is finished, e.g. writing certain data to a specific file. Do you have an access to the external program?
Walter Roberson
2013년 4월 8일
0 개 추천
if you use system() to invoke the external program, then if the program does not start up graphics windows, then system() will not return until the program finishes.
댓글 수: 5
Lila wagou
2013년 4월 10일
Walter Roberson
2013년 4월 10일
Please show the code you use for starting the program.
Is the external program one that starts up a GUI?
Lila wagou
2013년 4월 10일
Lila wagou
2013년 4월 12일
Walter Roberson
2013년 4월 12일
I do not know what notepad is in this context.
If you are using eval() of a '!' string, then instead use system() of the string without the leading '!'.
When you use ! or system() of a command that does not start a GUI, then control does not return to MATLAB until the command completes.
카테고리
도움말 센터 및 File Exchange에서 Entering Commands에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!