blob: b1343b88c63a3e82c3595694ec9a6d6ed2aaf7d9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
//===========================================================================
//chapter 9 example 1
clc;clear all;
//variable declaration
N = 1500; //speed of shaft in rm
T =120; //number of teeth on rotator
//calculatins
f = (N/60)*T; //frequency of output pulses in pulses per second
//result
mprintf("frequency of output pulses in pulses = %3.2f pulses per second",f);
|