I got it working... it was a scale problem. Instead of duty cycle = 0 to 1, my MATLAB fnc was outputtng duty cycle = 0 to 100.
After fixing my problem, I simply connected the MATLAN fnc to the input of the PWM generator and success.
More Answers in the Power Electronics Control
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!