Hi, i have this matlab code and was wondering if anyone could help me sort it out.
I want the formulas to calculate the NPV for each year, then to sum it. But instead the profit is calculated for year 4 only.
year=[0 1 2 3 4]
if year <= 0