0% found this document useful (0 votes)
196 views1 page

Sheets Matlab 2

solution is req

Uploaded by

Mahmoud Eldabah
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
196 views1 page

Sheets Matlab 2

solution is req

Uploaded by

Mahmoud Eldabah
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

pal48185_01_01-37.

qxd 9/27/07 12:20 AM Page 36

36 CHAPTER 1 An Overview of MATLAB®

22. Use MATLAB to plot the functions u  2 log10(60x  1) and v  3 cos(6x)


over the interval 0 x 2. Properly label the plot and each curve. The vari-
ables u and v represent speed in miles per hour; the variable x represents
distance in miles.
23. The Fourier series is a series representation of a periodic function in terms
of sines and cosines. The Fourier series representation of the function
f (x) = e
1 0<x<p
-1 -p < x < 0
is

a + Áb
4 sin x sin 3x sin 5x sin 7x
+ + +
p 1 3 5 7
Plot on the same graph the function f (x) and its series representation
using the four terms shown.
24. A cycloid is the curve described by a point P on the circumference of a
circular wheel of radius r rolling along the x axis. The curve is described
in parametric form by the equations
x = r (f - sin f)
y = r (1 - cos f)
Use these equations to plot the cycloid for r  10 inches and 0 ␾ 4␲.

Section 1.4
25. A fence around a field is shaped as shown in Figure P25. It consists of a
rectangle of length L and width W, and a right triangle that is symmetrical
about the central horizontal axis of the rectangle. Suppose the width W is
known (in meters), and the enclosed area A is known (in square meters).
Write a MATLAB script file in terms of the given variables W and A to
determine the length L required so that the enclosed area is A. Also
determine the total length of fence required. Test your script for the values
W  6 m and A  80 m2.

D
W

Figure P25

You might also like