Getting handle for interpreted MATLAB function in Simulink ?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Sourbh Bhadane
el 21 de Mayo de 2015
Comentada: Sourbh Bhadane
el 22 de Mayo de 2015
Hi,
I am building a GUI for a Simulink model that contains an Interpreted MATLAB Function block. I want to update the variables inside the MATLAB function of the Interpreted MATLAB Function block using the GUI. But I can't get the handle for the Interpreted MATLAB Function block. Any ideas on how to do this ?
0 comentarios
Respuesta aceptada
Anthony Poulin
el 21 de Mayo de 2015
Hello,
How do you try to catch the handle? Using get_param($blockRoot,'handle'), I catch the handle.
Using set_param($blockRoot, 'MATLABFcn', fcnName), I can change the function in the mask of the Interpreted Matlab function.
4 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Simulink Functions en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!