blob: 91a4c46bc55f03e45998d59fe761f37f3d25ce07 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
//=====================================================================================
//Chapter 13 example 6
clc;clear all;
//variable declaration
Rc = 1; //resistance in Ω
N = 5; //multiplying factor
//calculations
//N = (Rs+Rc)/Rs
Rs = Rc/(N-1); //shunt resistance in Ω
//result
mprintf("shunt resistance = %3.2f Ω",Rs);
|