0% found this document useful (0 votes)
19 views6 pages

Matlabhandout 03

This document outlines homework problems for an engineering programming class involving MATLAB. The homework includes creating vectors, plotting functions, writing function files, and calling script files to plot various relationships between physical quantities like force, capacitance, temperature, and projectile motion. Students are asked to plot sinh(x) and (e^x - e^-x)/2, cosh^-1(x) and ln(x + sqrt(x^2 - 1)), capacitance over a range of distances, force F1 over an angle of wrap, temperature in Celsius versus Fahrenheit, and height over time for a projectile.
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)
19 views6 pages

Matlabhandout 03

This document outlines homework problems for an engineering programming class involving MATLAB. The homework includes creating vectors, plotting functions, writing function files, and calling script files to plot various relationships between physical quantities like force, capacitance, temperature, and projectile motion. Students are asked to plot sinh(x) and (e^x - e^-x)/2, cosh^-1(x) and ln(x + sqrt(x^2 - 1)), capacitance over a range of distances, force F1 over an angle of wrap, temperature in Celsius versus Fahrenheit, and height over time for a projectile.
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/ 6

ME 1020 Engineering Programming with MATLAB

Handout 03

Homework 3 Assignment: 3.4, 3.6, 3.10, 3.12, 3.16, 3.18, 3.24

4. Create a vector for x over the range −2𝜋 ≤ 𝑥 ≤ 2𝜋. Use a MATLAB script file to plot
both sinh(x) and (𝑒 𝑥 − 𝑒 −𝑥 )/2 to show that they are the same function.

5. Create a vector for x over the range 1 ≤ 𝑥 ≤ 10𝜋. Use a MATLAB script file to plot both
cosh−1 (𝑥) and ln(𝑥 + √𝑥 2 − 1) to show that they are the same function.

6. The capacitance of two parallel conductors of length L and radius r, separated by a


distance d in air, is given by
𝜋𝜖𝐿
𝐶=
ln[(𝑑 − 𝑟)/𝑟]

where 𝜖 is the permittivity of air (𝜖 = 8.854 × 10−12 F/m). Create a vector for d over
the range 0.002 ≤ 𝑑 ≤ 0.010 m. Use a MATLAB script file to plot the capacitance over
the range of d for L = 1 m and r = 0.001 m.

7. When a belt is wrapped around a cylinder, the relation between the belt forces on each
side of the cylinder is

𝐹1 = 𝐹2 𝑒 𝜇𝛽

where β is the angle of wrap of the belt in radians and µ is the friction coefficient. Create
a vector for β over the range 10 ≤ 𝛽 ≤ 720°. Use a MATLAB script file to plot the force
𝐹1 over the range of β for µ = 0.3 and 𝐹2 = 100 N. (Hint: Be careful with β!)

9. Create a function file that accepts temperature in degrees Fahrenheit (°F) and computes
the corresponding value in degrees Celsius (°C). The relation between the two is

5
𝑇°C = (𝑇°F − 32)
9
Create a Calling Script File to plot the temperature in °C versus the temperature in °F
over the range 0 ≤ 𝑇 ≤ 250°F.

10. An object thrown vertically with a speed v0 reaches a height h at time t, where
1
ℎ = 𝑣0 𝑡 − 𝑔𝑡 2
2
Create a function file that computes the height h as a function of time 𝑡 for 𝑔 = 9.81 m/s2
and 𝑣0 = 50 m/s. Create a Calling Script File to plot the height versus the time 𝑡.
Determine the time when the object hits the ground using the fzero command.

11. function file that accepts temperature in degrees Fahrenheit (°F) and computes

You might also like