%% Generate a Price and Volume Chart for a Data Series for a Stock
% Load the file SimulatedStock.mat, which provides a timetable (TMW) for financial data for TMW stock. This price and volume chart for the TMW stock contains the open, high, low, close, and volume for the most recent 21 days.

load SimulatedStock.mat
priceandvol(TMW(end-20:end,:));

% Copyright 2012 The MathWorks, Inc.