blob: 0a5bf5c9a7843f415b71a4465c38acd8037d14a1 (
plain)
1
2
3
4
5
6
7
8
9
|
//Resistance R, Inductance L
close();
clear;
clc;
R = 5;//ohm
L = 0.01;//H
//For maximum current
t = 2*L/R;
mprintf('Time at which current reaches its maximum value, t = %0.0f ms',t*1000);
|