summaryrefslogtreecommitdiff
path: root/1997/CH11/EX11.2/example2.sce
blob: c35e4abd880b6cbad5f827e4cf8708830af54987 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//Chapter-11 example 2
//=============================================================================
clc;
clear;
Vo = 3*10^8;//velocity of EM wave in m/s
t  = 20*10^-6;//echo time in sec
// calculations

R = (Vo*t)/2;//distance b/n target and Radar in m

// Output
mprintf('Distance of Target from the Radar is %g Km',R/1000 );

//==========end of program=====================================================