1 2 3 4 5 6 7
//find the inductance of the coil N=1500;// number of turns I=10;//amp...current in coil F=.5*10^-3;//weber...flux L=N*F/I; disp('inductance of coil='+string(L)+'henry');