% Sample file to import Excel data into Matlab using the
% xlsread and xlswrite commands
% Line 22 illustrates the procedure to export from Matlab to Excel
% NOTE: Mac users: Line 22 will not work if the data exported is a cell
% array. You can export numerical data using the xlswrite function.

clear

% Sample Excel data file

% Name  	Country  	Completed  	 Length (m) 
% Mackinac	United States	1957	8038 
% Xiasha	China	1991	8230 
% Virginia-Dare-Memorial	United States	2002	8369 

% Read the complete Excel file (previous exercise)

[num,txt,raw] = xlsread('bridges_of_the_world_short.xls','Bridge data');

% Read the Excel file specifying columns and rows to read

xlswrite('exportToExcel.xls',num)    % writes to Excel starting at cell A1

% xlswrite('exportToExcel.xls',num,'sheet1')

% Create a header cell array to write with the data
