Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

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 vue (au cours des 30 derniers jours)
munir ahmed
munir ahmed le 5 Août 2017
Clôturé : MATLAB Answer Bot le 20 Août 2021
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?

Réponses (1)

ES
ES le 7 Août 2017
You should use set_param to set the properties.
set_param(blockname, 'Amplitude', '5');

Cette question est clôturée.

Community Treasure Hunt

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

Start Hunting!

Translated by