blob: 00cff751fac0a9e75a2c00cc3bcaf4b2fc52f141 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
//=====================================================================================
//Chapter 16 example 12
clc;clear all;
//variable declaration
fx = 1000; //frequency of horizontal input in Hz
Pv = 2; //pointsof tangency to vertical line
Ph = 5; //pointsof tangency to horizontal line
//calculations
fy = fx*(Ph/(Pv)); //frequency ofvertical input in Hz
//result
mprintf("frequency ofvertical input = %3.2f Hz",fy);
|