1 2 3 4 5 6 7
//Chapter 9, Problem 9 clc; L=12; //inductance dI=4; //change in current dt=1; //change in time E=-L*(dI/dt); //calculating induced emf printf("Induced emf E = %d V",E);