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

79.49% Correct | 20.51% Incorrect
Last Solution submitted on Mar 26, 2025

Problem Comments

Solution Comments

Show comments
Who Deserves Your Praise? Discover the New Contribution Widget!
...
We are excited to announce another update to our Discussions area: the...

Problem Recent Solvers30

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