Hi,
I am trying to solve the present value formula for the discount rate. Its pretty easy doing that for a 1xn matrix. Here a simple example:
FCF = [100 110 80 120 125 95];PV = [600];syms x real;eqn = sum(FCF ./ ((1+x).^([1:size(FCF,2)]))) == PV;r = vpasolve(eqn,x,[0 1])
However, my problem is that I have a 5000xn matrix for cash flows and a 5000×1 matrix for the present values. Does anyone know how I can apply this method to each row, so that the result is a 5000×1 vector of the estimated discount rate?
Best Answer