%% Read Tabular Data From File into Matrix
% Read homogenous tabular data from a text or spreadsheet file into a MATLAB array. Data is considered homogenous when all the data in the file is of the same data type.
% Display the contents of the file numericMatrix.txt which contains homogeneous data. The file contains a header line of variable names followed by three rows of numeric data.

type numericMatrix.txt

%
% Import data from the text file numericMatrix.txt into a matrix.

A = readmatrix('numericMatrix.txt')

%
% Import data from the Excel file numericMatrix.xlsx into a matrix.

B = readmatrix('numericMatrix.xlsx')

% Copyright 2018 The MathWorks, Inc.