Borrar filtros
Borrar filtros

Calling the vectorized Matlab fcn from within Simulink

1 visualización (últimos 30 días)
Peter Balazovic
Peter Balazovic el 18 de Oct. de 2022
Respondida: Paul el 18 de Oct. de 2022
Dears,
I have various Matlab function vectorized and accosutmed to be used with matrix, vector inputs. Is there a way to use efffectivelly such "vectorized" functions in Simulink?

Respuesta aceptada

Paul
Paul el 18 de Oct. de 2022
Use a Matlab Function block in the Simulink model and call your function from inside that block. If your function is not amenable for code generation, declare it via coder.extrinsic. Check the doc pages for relevant details.

Más respuestas (0)

Categorías

Más información sobre Simulink Functions en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2022b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by