blob: 5fe80af1eedea11b49e3f0ba28b774f18b708d7c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// Chapter 9
// 2kHZ Square Wave generator
// Page.No-323
// Example9_6
//Figure 9.23
// Given
clear;clc;
R1=10000; //in Ohm
R2=R1/0.859; //in Ohm
fo=2000; //in Hz
printf("\n R2 is %.0f Ohm\n",R2); // Result
C=1/(2*R1*fo);
printf("\n C is %.9f F\n",C); // Result
|