Is it possible to read data from .dat or .m file for an intial value of IC block in simulink?
1 view (last 30 days)
More Answers (1)
K E on 10 Jul 2012
Or you can write a mfile script to read in the stored values from a mat file (or just write them into the mfile), use the set_param command to assign those values to your model, then run the simulations from the script using the sim command. You can further process or save the output from your simulations from within the mfile. This is a useful approach for parameter studies where you are varying those inputs' values.