>> myplot(xdata,ydata,\'plot_symbols\',\'xaxis\',\'yaxis\',\'plot_title\'). Hint
ID: 3567100 • Letter: #
Question
>> myplot(xdata,ydata,'plot_symbols','xaxis','yaxis','plot_title').
Hint: inside mplot function you should put hold on; after each of xlabel and ylabel.
PART B
The future-value-of-money formula relates how much a current investment will be worth in the future, assuming a constant interest rate. FV = PV X (1 + I)^n where FV is the future value PV is the present value or investment I is the interest rate expressed as a fractional amount per compounding period-i.e., 5% is expressed as .05 n is the number of compounding periods. (a) Create a MATLAB function called future_value with three inputs: the investment (present value), the interest rate expressed as a fraction, and the number of compounding periods. (b) Use your function to determine the value of a $1000 investment in 10 years, assuming the interest rate is 0.5% per month, and the interest is compounded monthly.Explanation / Answer
function []=myplot(xdata,ydata,plot_symbols,xaxis,yaxis,plot_title)
plot(xdata,ydata,plot_symbols)
hold on
xlabel(xaxis)
ylabel(yaxis)
title(plot_title)
end
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.