"Matlab" interacts with Excel files

1.Experimental tasks and purposes

1. Master the mixed use of Matlab and Excel.

2.Experimental content

1. List the usage of various functions used by Matlab to operate EXCEL files and give examples.

2. Construct two data files, an Excel file and a txt text file. Programming to perform simple calculations on the data in the Excel file, append the simple calculated data to the txt file, save the data file and close the file. (Note: The data format of the constructed txt file is the same as that of simple calculation).

  • results and process

1. List the usage of various functions used by Matlab to operate EXCEL files and give examples.

(1) xlsfinfoFor function adjustment

 

  (2) XlsreadFunction call

 

 

 

  (3)  xlswrite function adjustment

 

 

       2. Construct two data files, one Excel file and one txt text file. Programming to perform simple calculations on the data in the Excel file, append the simple calculated data to the txt file, save the data file and close the file. (Note: The data format of the constructed txt file is the same as that of simple calculation).

(1)

(2)

 

(3)

 

 (4)

(5)

 

 

Guess you like

Origin blog.csdn.net/jian091309/article/details/131797929