====== Differences ====== This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
gibson:teaching:fall-2014:math445:hw2solns [2014/10/07 10:34] gibson created |
gibson:teaching:fall-2014:math445:hw2solns [2014/10/07 10:38] (current) gibson |
||
---|---|---|---|
Line 4: | Line 4: | ||
% Math 455 HW2 | % Math 455 HW2 | ||
% Oct 7, 2014 | % Oct 7, 2014 | ||
- | |||
% Problem 1: Write a Matlab expression that sums the first N terms | % Problem 1: Write a Matlab expression that sums the first N terms | ||
Line 50: | Line 49: | ||
any(x>y) | any(x>y) | ||
- | |||
% Problem 4: Given vector x, write an expression that has value true (1) | % Problem 4: Given vector x, write an expression that has value true (1) | ||
Line 66: | Line 64: | ||
xlabel('x') | xlabel('x') | ||
ylabel('sin(x)') | ylabel('sin(x)') | ||
- | |||
% Problem 6: Plot sin(x) in red, cos(x) in green, over same x as problem 5. | % Problem 6: Plot sin(x) in red, cos(x) in green, over same x as problem 5. | ||
Line 86: | Line 83: | ||
ylabel('y = 5*x.^2 - 4*x - 3') | ylabel('y = 5*x.^2 - 4*x - 3') | ||
title('Problem 7') | title('Problem 7') | ||
- | |||
% Problem 8: Make a plot of the unit circle. Make sure it's closed –no gap! | % Problem 8: Make a plot of the unit circle. Make sure it's closed –no gap! | ||
Line 120: | Line 116: | ||
xlabel('x') | xlabel('x') | ||
ylabel('3x^5') | ylabel('3x^5') | ||
- | title('Problem 10') | + | title('Problem 10'){{:gibson:teaching:fall-2014:math445:hw2:problem5.png?nolink&300|}} |
</code> | </code> | ||
+ | {{:gibson:teaching:fall-2014:math445:hw2:problem5.png?nolink&300|}} {{:gibson:teaching:fall-2014:math445:hw2:problem6.png?nolink&300|}} {{:gibson:teaching:fall-2014:math445:hw2:problem7.png?nolink&300|}}{{:gibson:teaching:fall-2014:math445:hw2:problem8.png?nolink&300|}} {{:gibson:teaching:fall-2014:math445:hw2:problem9.png?nolink&300|}} {{:gibson:teaching:fall-2014:math445:hw2:problem10.png?nolink&300|}} |