I am trying to generate PWM wave using pulse generator in simulink. But in addition to that I have couple of doubts which I want to clear.
1) Is it possible to insert variable(x) for duty cycle in pulse generator data? Here X = duty cycle which is dependent on other paprameters.
2) Is it possible to insert .m file which generates the PWM wave in any basic circuit diagram of the MATLAB?
Any leads will be appriciated.