summaryrefslogtreecommitdiff
path: root/2231/CH1/EX1.6/Ex_1_6.sce
blob: af17d7c6467e9f56806707cd98245eb498d02169 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//Example 1_6
clc;
clear;close;

//Given data
Vdc=100;//V
R=10;//ohm
L=5;//H
i=50*10^-3;//A

//Solution :
//i=Vdc/R*(1-exp(-R*t/L))
t=-log(1-i/Vdc*R)/R*L;//s
disp("Minimum width of gate pulse is "+string(t*1000)+" milli-seconds.");