changing block parameter during simulation.
1 view (last 30 days)
Show older comments
BARAN Özbakr
on 23 May 2014
Commented: BARAN Özbakr
on 23 May 2014
I am trying to simulate electrical circuit with matlab, but I have inductor and resistor load, I need change their parameters during simulation. Any idea ?
thanks
0 Comments
Accepted Answer
Azzi Abdelmalek
on 23 May 2014
Edited: Azzi Abdelmalek
on 23 May 2014
Use set_param to modify your block parameters. Use also
set_param(modelName,'SimulationCommand','start'); % to start simulation
set_param(modelName,'SimulationCommand','pause'); % to pause simulation
% Change your parameters with set_param
set_param(modelName,'SimulationCommand','update');
set_param(modelName,'SimulationCommand','continue'); % to continue simulation
4 Comments
Azzi Abdelmalek
on 23 May 2014
Edited: Azzi Abdelmalek
on 23 May 2014
Before changing the parameter use
set_param('igbt_deneme','SimulationCommand','pause')
More Answers (0)
See Also
Categories
Find more on S-Parameters and Linear Components 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!