Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Hi, i am using an input source in the simulink named as Pulse generator its pulse type is time based and its using simulation time as shown in the attached picture, i want to change its amplitude during simulation run, can someone help how to do it?

1 回表示 (過去 30 日間)
munir ahmed
munir ahmed 2017 年 8 月 5 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
Hi, I am using an input source in the Simulink named as Pulse generator its pulse type is time-based and its using simulation time as shown in the attached picture, I want to change its amplitude during the simulation run, can someone help how to do it?

回答 (1 件)

ES
ES 2017 年 8 月 7 日
You should use set_param to set the properties.
set_param(blockname, 'Amplitude', '5');

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by