Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- %% Self-Inductance of a Solenoid
- % Determines the inductance and rate at which current must chagne through
- % it to produce an EMF
- % Constants
- muNaught = (4*pi)*10^-7; %[T*m/A] Vacuum Permeability
- % Inputs and Variables
- r = input('What is the radius?\n');
- N = input('How many turns?\n');
- l = input('Length of the solenoid\n');
- E = input('EMF produced\n');
- % Outputs and Equations
- A = pi*r*r;
- L = muNaught*N*N*A/l;
- rate = E/L;
- fprintf('The inductance is %.3e and the rate is %.3e\n', L, rate)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement