Unit8 Lab A - 6-A.2function Prob6_A_2(A)% use ezplot to...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 6-A.2function Prob6_A_2(A)% use ezplot to graph sin(x)*exp(-0.1x) in [0, A*pi]% INPUT: A, a scalar number% OUTPUT: noneezplot('sin(x)*exp(-0.1*x)', [0, A*pi])6-A.3function Prob6_A_3% Graphiclly find the solutions to -2*x^2 + 5*x + 4% INPUTS: none% OUTPUTS: noneezplot('-2*x^2 + 5*x + 4')grid on% at this point the student would zoom the chart to better% show the roots - i.e. the zero-crossinggtext('lower root')gtext('upper root')6-A.7function x=Prob6_A_7(lower, upper)% uses ezplot to create a plot to find the value of cos(t)% when cosh(t)=3.% INPUTS: lower, a scalar, the lower limit of the range of t% upper, a scalar, upper limit on t% OUTPUTS: noneF1 = 'cos(t)'; F2 = 'cosh(t)';ezplot(F1, F2, [lower, upper])grid on% by experimentation, reasonable values for the lower and% upper are lower=pi/2 upper=pi/1.75[x,y]=ginput(1); % click on the curve where y=3% ginput returns both the x and y coordinates of the point....
View Full Document

Page1 / 3

Unit8 Lab A - 6-A.2function Prob6_A_2(A)% use ezplot to...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online