break even point analysis

6 views (last 30 days)
Ruben Moreno
Ruben Moreno on 24 Mar 2021
Answered: Zuber Khan on 24 Sep 2024
I have simulated prices in order to calculate the PV and NPV of a project, i have a fixed price and cost for the product. With this i want to calculate the value of the cash flow so that the NPV = 0.
Below is my current code. for every month the production and cost of the product is the same, the only thing that fluctuates is the simulated price which obviosly affects the CF each month.

Answers (1)

Zuber Khan
Zuber Khan on 24 Sep 2024
Hi,
You can try using Financial Toolbox present in MATLAB in order to cater to your needs.
For instance, "pvvar" function can be used to calculate the present value of varying cash flow. You can refer to the following documentation to know more about it.
Further, Financial Toolbox provides a collection of financial tools to compute cash flows and sensitivities for annuities, amortization and depreciation, present and future value, and rates of return. Kindly follow the below mentioned documentation for more information.
Alternatively, if you want to proceed through analytical approach, then you need to adjust the cash flow values iteratively until the NPV is zero. This is typically done using a numerical method such as "Newton-Raphson" method. You can check out the following sections of symbolic Math Toolbox for related examples.
You can also search through the File Exchange forum for numerical solvers such as Newton-Raphson. For instance, following is one such resource that provides a demonstration of the "Newton-Raphson" method.
I hope it will help you to resolve this problem.
Regards,
Zuber

Categories

Find more on Price and Analyze Financial Instruments in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!