%% Obtain Buy and Sell Costs for a PortfolioMAD Object
% Given a PortfolioMAD object p with the costs set, obtain the values for BuyCost and SellCost.

p = PortfolioMAD;
p = setCosts(p, 0.001, 0.001, 5);
[BuyCost, SellCost] = getCosts(p)

% Copyright 2015 The MathWorks, Inc.