I need help using a p function as a block in simulink.

6 visualizaciones (últimos 30 días)
Rees Fullmer
Rees Fullmer el 4 de Abr. de 2017
Respondida: Varun Gunda el 7 de Abr. de 2017
I have a proprietary function in the form of a p file. I would like to include it as an element in a simulink program. Typically I take a *.m function and simply copy and paste it into a matlab function block. That is not possible here, or so I think. Any advice is welcome!

Respuestas (1)

Varun Gunda
Varun Gunda el 7 de Abr. de 2017
MATLAB functions can call P-code. When the .m and .p versions of a file exist in the same folder, the P-file takes precedence. Call the pcode file from the .m file to MATLAB Function Block. You should be able to do that.

Categorías

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

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by