Interpreted custom function in Simulink
5 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Vicente
el 20 de Abr. de 2015
Comentada: Vicente
el 30 de Abr. de 2015
Hello!
About the "MATLAB Function" block in Simulink, is there any way to avoid the compilation of the respective matlab file and let it be interpreted instead? Because the file is currently using some Matlab functions which prevent the block from compiling (es. try/catch, getfl, etc).
Thank you.
0 comentarios
Respuesta aceptada
Sebastian Castro
el 20 de Abr. de 2015
Editada: Sebastian Castro
el 20 de Abr. de 2015
Yes -- you can use coder.extrinsic to declare those unsupported functions as extrinsic. Check out the "plot" example in the documentation link.
EDIT: Actually, for Try/Catch this still may not work. You can use an Interpreted MATLAB Fcn block in that case.
- Sebastian
Más respuestas (0)
Ver también
Categorías
Más información sobre String 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!