Advertisement
hiddenGem

Function: Power of Resistors

Jun 20th, 2020
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.18 KB | None | 0 0
  1. %% Function Power of Resistors
  2. % Calculates the power of an external and internal resistor
  3. function [External, Internal] = PowerResist(I, R, r)
  4. External = R*I^2;
  5. Internal = r*I^2;
  6. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement