mat file read and write

Together to learn to read and write files on Evolutionary Computation -mat

Find useful, welcome to discuss mutual learning together - Follow Me

Matlab read and save mat file data

  1. Enter the name of a variable in matlab save the command line, will be a variable saved in a new file generated a.mat
  2. In the current folder, you can see the new generation of a.mat file, note that when saving data to a mat file, you can set mat file name, save variables, saved path
  3. "Load a", the file data read a.mat, after reading, the file can be used directly mat inside a variable, or may double-click the file name, the file can Load mat of variables
  4. If we want to save multiple variables to the mat file, you can save ( 'data.mat', 'a', 'b') way, data.mat is generated mat file name, a and b are deposited variable
  5. After using load ( 'data.mat') reads mat file, read, and may be used as a variable b

    Note

  • Note that if the variable structure and a mat file type stored in more complex, not necessarily all of the information line of the command will be variable, but the value of the variable is displayed in the workspace, double-click the variable name, you can open all of the variables .

Guess you like

Origin www.cnblogs.com/cloud-ken/p/11234400.html