Untitled
unknown
plain_text
2 years ago
226 B
6
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