How can I set the solver to 'discrete', programmatically?
Show older comments
Hi,
I want to use set_param() to set the solver-type to "Fixed-step" and solver to "discrete".
I could set the solver type by using:
myModel = 'model';
set_param(myModel, 'SolverType', 'Fixed-step')
but I receive an error with the following statement.
set_param(myModel, 'Solver', 'discrete');
The error says the following:
Invalid setting in block_diagram 'MultiplyAndAdd_harness' for parameter 'Solver'
Can anyone help me with this?
Accepted Answer
More Answers (0)
Categories
Find more on Simulink 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!