Simulink : Get handle of a Matlab-Function block, inside Matlab-Function itself
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
langrg
el 20 de Feb. de 2020
Comentada: langrg
el 21 de Feb. de 2020
Hello,
Is there a way to get handle of a Matlab-Function Simulink block inside of the Matlab-Function itself?
Thanks!
0 comentarios
Respuesta aceptada
Fangjun Jiang
el 20 de Feb. de 2020
I would think so, just try handle=get_param(Block,'handle') where "Block" is the full path of the MATLAB function block in your Simulink model.
3 comentarios
Fangjun Jiang
el 20 de Feb. de 2020
would you try to see if "gcb" could always give you the correct path?
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!