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

81.48% Correct | 18.52% Incorrect
Last Solution submitted on Mar 02, 2025

Problem Comments

Solution Comments

Show comments
Primes and Rough Numbers, Basic ideas
What is a rough number? What can they be used...
2
4

Problem Recent Solvers21

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