changing block parameter during simulation.
3 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
Azzi Abdelmalek
2014-5-23
编辑:Azzi Abdelmalek
2014-5-23
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 个评论
Azzi Abdelmalek
2014-5-23
编辑:Azzi Abdelmalek
2014-5-23
Before changing the parameter use
set_param('igbt_deneme','SimulationCommand','pause')
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Simulation and Analysis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!