blob: c9e5c0756b2a173296dc2a45307095c2f45245f1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
clear//
//Variables
t = 0.01 //Time period of positive half cycle (in seconds)
//Calculation
t1 = 0.01 //Time period of negative half cycle (in seconds)
T = t + t1 //Time period of one complete cycle (in seconds)
//Result
printf("\n Time period of rectified input is %0.3f s.",T)
|