Hello guys, i have a push button and I want to laod m-file when I press it, please answer ;)
Mostrar comentarios más antiguos
I make a GUI and I want to add a push button that will load a m-file.
2 comentarios
Walter Roberson
el 15 de Oct. de 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
el 16 de Oct. de 2015
Respuesta aceptada
Más respuestas (1)
Maciej Wroz
el 16 de Oct. de 2015
Editada: Maciej Wroz
el 16 de Oct. de 2015
0 votos
1 comentario
Dennie
el 19 de Oct. de 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.
Categorías
Más información sobre Model, Block, and Port Callbacks en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!