Hello guys, i have a push button and I want to laod m-file when I press it, please answer ;)
이전 댓글 표시
I make a GUI and I want to add a push button that will load a m-file.
댓글 수: 2
Walter Roberson
2015년 10월 15일
Please explain further what you mean by "load" of an m file. Do you mean execute the file, or do you mean upload from somewhere to somewhere else?
Maciej Wroz
2015년 10월 16일
채택된 답변
추가 답변 (1개)
Maciej Wroz
2015년 10월 16일
편집: Maciej Wroz
2015년 10월 16일
0 개 추천
댓글 수: 1
Dennie
2015년 10월 19일
If I understand you correctly, it seems to me that you start the simulink simulation from the m-file, right ? If the m-file is run by the code in the gui, i suppose that the mistake is in the m-file itself. It could be that you use the wrong command to start the simulation. Try using sim() instead of open() or run(). For better help, you should upload the part of the code that currently does this, or give me some more information on what happens and what you would expect to happen.
카테고리
도움말 센터 및 File Exchange에서 Model, Block, and Port Callbacks에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!