Hello guys, i have a push button and I want to laod m-file when I press it, please answer ;)
Ältere Kommentare anzeigen
I make a GUI and I want to add a push button that will load a m-file.
2 Kommentare
Walter Roberson
am 15 Okt. 2015
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
am 16 Okt. 2015
Akzeptierte Antwort
Weitere Antworten (1)
Maciej Wroz
am 16 Okt. 2015
Bearbeitet: Maciej Wroz
am 16 Okt. 2015
0 Stimmen
1 Kommentar
Dennie
am 19 Okt. 2015
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.
Kategorien
Mehr zu Model, Block, and Port Callbacks finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!