Untitled

 avatar
unknown
plain_text
a year ago
226 B
1
Indexable
% Define parameters
Vin = 20; % Input voltage (V)
Vo = 12;  % Output voltage (V)
D = 0.6;  % Duty cycle

% Calculate output voltage
Vout = D * Vin;

% Print the result
fprintf('Output Voltage (Vo): %.2f V\n', Vout);
Editor is loading...
Leave a Comment