%% Calculate the Profit of an Option
% This example shows how to return the profit of an option. For example, consider 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)

% Copyright 2015 The MathWorks, Inc.