summaryrefslogtreecommitdiff
path: root/863/CH1/EX1.1/Ex1_1.txt
blob: 915d232c6c29bf99fdd22807f9a960353193abd9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
//Caption:Find (a)Pulse amplitude (b)PRF (c)PW (d)Duty cycle and (e)M/S ratio
//Exa:1.1
clc;
clear;
close;
v=1//Vertical scale(Volt per division)
h=0.1//Horizontal scale(Milli sec per division)
pv=3.5//Amplitude of pulse in divisions
t=6//Time in divisions
pw=2.5//Width of pulse
P=pv*v
disp(P,'(a)Pulse Amplitude (in volts)=')
T=t*h
prf=(1/T)*1000
disp(prf,'(b)PRF(in pps)=')
p=pw*h
disp(p,'(c)PW (in ms)=')
sw=pv*h
d=(p/T)*100
disp(d,'(d)Duty cycle(in %)=')
m=p/sw
disp(m,'(e)M/S ratio=')