summaryrefslogtreecommitdiff
path: root/1301/CH16/EX16.16/ex16_16.sce
blob: 086441797a28fd680e60486a31e0824b5f6b61c8 (plain)
1
2
3
4
5
6
clc;
v1=-20;     //velocity in m/sec
vs=0;     //velocity in m/sec
fs=500;    //original frquency
f1=(fs*(v+v1))/(v-vs);   //doppler effect
disp(f1,"Percieved frequency in Hz = ");   //diplaying result