hi, i have written a code in editor to find a value ,'phase_delay'
ip = menu('input is','ac','dc')% askin whether input is ac or dc
if ip==1 Vdc=inputdlg('dc output needed = ');cos_alpha=((Vdc*pi)/(220)-1);alpha=acosd(cos_alpha);phase_delay=(alpha)/18000end
now i want to put this value of phase_delay in "phase delay" of simulink/sources/pulse generator, automatically.
Best Answer