blob: fa73bbca8069c9cbe24a9c6c144d519ff892664a (
plain)
1
2
3
4
5
6
7
8
9
|
//voltage standing wave ratio
//given
clc
Vmax=50//volts
Vmin=35//volts
VSWR=Vmax/Vmin
VSWR_db=20*log10(VSWR)//db
VSWR_db=round(VSWR_db*1000)/1000///rounding off decimals
disp(VSWR_db,'the voltage standing wave ratio in decibles')//db
|