diff options
Diffstat (limited to '45/CH10/EX10.1')
-rwxr-xr-x | 45/CH10/EX10.1/example_10_1.sce | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/45/CH10/EX10.1/example_10_1.sce b/45/CH10/EX10.1/example_10_1.sce new file mode 100755 index 000000000..dcd7c8130 --- /dev/null +++ b/45/CH10/EX10.1/example_10_1.sce @@ -0,0 +1,10 @@ +//example 10.1 +clc; +clear; +//c= input('Enter the period of the waveform at C in micro seconds : '); +c=24;// given period of waveform +clk= c/8; +clkf = 1/(clk*10^-3); +printf('The clock period is %f micro seconds \n',clk);//displaying the results +printf('The clock frequenc must be %f KHz ', clkf); + |