Could not define a data in matrix form in model workspace ( for simulation)

11 views (last 30 days)
I had to do multiple interation of simulation and record plot for numerous set of setting
hence it was convenient to define the variables in a matrix form and run simulation but the variable are not being stored in base worspace after restart of system. and in Model workspace it si not possible to use a matrix in data.
kindly guide me in the same.

Answers (1)

Paul
Paul on 11 Jan 2025
Based on the limited description, I'm not quite sure how you'd like to run multiple iterations of a simulation for different parameters. One way to do that is using the Simulink.SimulationInput object with the sim command. More generally, see Running Multiple Simulations.

Categories

Find more on Event Functions in Help Center and File Exchange

Products


Release

R2024b

Community Treasure Hunt

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

Start Hunting!