"Matlab" file operation

1.Experimental tasks and purposes

1. Master Matlab to import and export data through the interface.

2. Master the reading and writing methods of text files and basic input and output functions in Matlab.

2.Experimental content

1. List the usage of various functions of Matlab file operation and give examples.

2. Create matrices, save them in files in different ways, and then read them out. For example, it can be read through save function, csvwrite function, fprintf function and other methods and corresponding methods.

3. Experimental process andresults

  1. List the usage of various functions of Matlab file operation and give examples.

  (1) load, import data from text files to MATLAB workspace

    

    (2) delmread, read data from text files

 

 

     2. Create a matrix, save it in a file in different ways, and then read it out. For example, it can be read through save function, csvwrite function, fprintf function and other methods and corresponding methods.

   (1) save function Demo

   (2) Demo of csvwrite function

 

    (3) Demo of fprintf function

    

 

Guess you like

Origin blog.csdn.net/jian091309/article/details/131797830
Recommended