%% Create Instrument Subset
% Retrieve the instrument set variable ExampleInst from the data file InstSetExamples.mat. ExampleInst contains three types of instruments: Option, Futures, and TBill.

load InstSetExamples; 
instdisp(ExampleInst)

% Make a new portfolio containing only options struck at 95.

Opt95 = instselect(ExampleInst, 'FieldName', 'Strike','Data', '95') 
instdisp(Opt95)

% Make a new portfolio containing only futures and Treasury bills.

FutTBill = instselect(ExampleInst,'Type',{'Futures';'TBill'})
instdisp(FutTBill)

% Copyright 2020 The MathWorks, Inc.