load stockperf
% Get stock data from this file.

whos
% See variables in the workspace.

stock_values
% See the values from stock_values.

openvals=stock_values(:,1)
% Finding the opening stock prices for this stock.

max_openvals=max(openvals)
% Finding the maximum value of the opening stock price.

mean_openvals=mean(openvals)
% Find the average value of the opening stock price.

low_vals=stock_values(:,3)
% Finding the low values for this stock.

max_lowval=max(low_vals)
% Find the maximum value of the lowest stock.

mean_lowvals=mean(low_vals)
% Find the average value of the lowest stock.


% Start of Extra Credit
% Sort the values of the last values.
lastvals=stock_values(:,end)
sortvals=sort(lastvals)

% Sort all data in ascending opening price.
stock_data_sort_open = sortrows(stock_values,2)


