How to transfer an M-file to a Smulink block

1 view (last 30 days)
Dear All,
I hope everyone is doing well.
I have an M-file with a for loop, and I need to convert it to be a Simulink block to be able to use it in a Simulink program.

Answers (1)

Fangjun Jiang
Fangjun Jiang on 31 Mar 2022
Use the "MATLAB Function" block

Community Treasure Hunt

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

Start Hunting!

Translated by