blob: 25603696d07926f1dcb9aa82515f37bc159cfd8c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
//Chapter-11 example 41
//=============================================================================
clc;
clear;
//Given data
Vo = 3*10^8; // vel of EM wave m/s;
t = 10*10^-6; // time taken to rx echo
//Calculations
R = (Vo*t)/2; // Distance of the Target
//output
mprintf('Distance of the target is %3.2f Km',R/1000);
//==============================================================================
|