| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Financial Toolbox |
| Contents | Index |
| Learn more about Financial Toolbox |
Profit = opprofit(AssetPrice, Strike, Cost, PosFlag, OptType)
AssetPrice | Asset price. |
Strike | Strike or exercise price. |
Cost | Cost of the option. |
PosFlag | Option position. 0 = long, 1 = short. |
OptType | Option type. 0 = call option, 1 = put option. |
Profit = opprofit(AssetPrice, Strike, Cost, PosFlag, OptType) returns the profit of an option.
Buying (going long on) a call option with a strike price of $90 on an underlying asset with a current price of $100 for a cost of $4
Profit = opprofit(100, 90, 4, 0, 0)
returns
Profit =
6.00
a profit of $6 if the option is exercised under these conditions.
![]() | onbalvol | payadv | ![]() |
View demos and recorded presentations led by industry experts.
Now On Demand
Network with industry peers and learn the latest applications of the leading software product for computational finance.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |