Voltage Divider Calculation - MATLAB Cody - MATLAB Central

Problem 60811. Voltage Divider Calculation

Difficulty:Rate
A voltage divider is a simple circuit used to obtain a reduced voltage from a higher voltage source using two resistors in series. The output voltage (Vout​) is given by the formula:
Where:
  • Vout​ is the output voltage in volts (V)
  • Vin is the input voltage in volts (V)
  • R1​ and R2 are the resistances in ohms (Ω)
Write a function that takes Vin, R1​, and R2 as inputs and returns Vout​.

Solution Stats

83.33% Correct | 16.67% Incorrect
Last Solution submitted on Mar 10, 2025

Problem Comments

Solution Comments

Show comments

Problem Recent Solvers24

Suggested Problems

More from this Author20

Problem Tags

kkk

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Go to top of page