blob: 6a813c7d0043b315ff2bae74efaf2e79e3cdfe70 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
clear//
//Variables
fo = 2.0 * 10**6 //Resonant frequency (in Hertz)
BW = 50.0 * 10**3 //Bandwidth (in Hertz)
//Calculation
Qo = fo / BW //Quality factor
//Result
printf("\n The Q-factor is %0.3f .",Qo)
|