For ample credit:
Include topic, matlab rule used indicate reply and your reply. Submit as pdf.
1) Produce a office named step_fn(t).
This is as-well spiritless to seduce this office u(t) or u_fn(t)
Input: opportunity vector
Output: a vector of the similar extension behind a while values of 0 if t<0, and 1 otherwise
2) Produce a office named ramp_fn(t)
This is as-well spiritless to seduce this office r(t), r_fn(t) or tu(t)
Input: opportunity vector
Output: a vector of the similar extension behind a while values of 0 if t<0, and t otherwise
3) Create a office named g1_fn(t)
This office should be similar to step_fn(t) + ramp_fn(t) – ramp_fn(t-3) -3*step_fn(t-5)
4) Plot the subjoined offices (can put on one frame or use subplots -- determine how to best offer the offices).
u(t)
u(t-2)
2u(t)
-3u(t+2)
5) Frame the subjoined offices (can put on one frame or use subplots -- determine how to best offer the offices).
r(t)
r(t-2)
2r(t)
-3r(t+2)
6) Frame the subjoined offices (can put on one frame or use subplots -- determine how to best offer the offices).
sin(t)u(t)
sin(t)u(t-π)
sin(t-π)u(t-π)
7) Frame the subjoined offices (can put on one frame or use subplots -- determine how to best offer the offices).
g(t)
g(t-2)
g(2t)
g(t/2)
8) Write a script to indicate the poise in a saving representation at the end of total year for n = years. The representation has an judicious cannonade of A$ and the curiosity-behalf objurgate is r, and compounds annually. Show the script should request
Initial cannonade amount
Interest objurgate
years
if should produce a vector for enumerate of year [1:n], and the poise behind each year
Balance = A(1 + r/100)n