I do not know how to set this problem up.

조회 수: 1 (최근 30일)
shelby mcgowan
shelby mcgowan 2016년 7월 25일
답변: Div Tiwari 2016년 8월 9일
Use the meshgrid function to determine all the possible amount that could be in your account at the end for 10 years given the following investments ($1000, $2000, $3500, $1500, $500) and the interest rates (0.15, 0.20, 0.1)
  댓글 수: 1
Walter Roberson
Walter Roberson 2016년 7월 25일
How would you write the equation for one investment amount at one interest rate for 10 years?

댓글을 달려면 로그인하십시오.

답변 (1개)

Div Tiwari
Div Tiwari 2016년 8월 9일
Looking at the syntax of the 'meshgrid' should provide a hint. Consider
[X,Y] = meshgrid(xgv,ygv)
You may use the principal amounts as one input vector, and for the other, you could provide a vector containing the factor by which an amount would grow in 10 years under each of the given rates. Compare the output matrices to determine the final step(s).
As an aside, the same output can be obtained directly with a single matrix multiplication as well.

카테고리

Help CenterFile Exchange에서 Multidimensional Arrays에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by