summaryrefslogtreecommitdiff
path: root/165/CH12/EX12.2/ex12_2.sce
blob: 1b9af84c0c059fdd12f3a9d06a91203ac148a86b (plain)
1
2
3
4
5
6
7
8
9
//Example 12.2
clc;

f=20;                  //Frequency in Hz
time_base=5;           //one cycle of signal recorded in mm
period=invr(f);
chart_speed=time_base/period;

printf('\nChart speed of signal is %d mm/s\n',chart_speed)