which simulink block to use in the model?

My requirements has some inputs, When i run the simulink model i want the inputs should go to m-file than use those inputs to create some data in the file which will be sent back to simulink. is there any possibilities to do like this? should i use TO FILE and FROM FILE blocks to send and retrieve data from file?

1 Comment

why not replace the m file with s-functions or other user-defined funcitons?

Sign in to comment.

 Accepted Answer

If you have some calculations to do use matlab function bloc or interpreted matlab function bloc

More Answers (0)

Categories

Find more on Block and Blockset Authoring in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!