MATLAB: How to show mat file to struct image processing Hello, I wish to know how to show data in .mat file in the form struct and save it back to mat file format? Best Answer If you load the .mat file to a variable, it will automatically be a structure: Data = load('yourMatFile.mat');You can then access the variables in the file as: x = Data.Variable1;y = Data.Variable2;and so forth, depending on the variable names in the .mat file. See the documentation section on: Load List of Variables Into Structure Array (link) for an extended discussion. Related SolutionsMATLAB: MAT files p=load matfile1.matq=load matfile2.matsave newmatfile.mat MATLAB: Edit and save MAT file save('YouOldFileName.mat', 'YourStructureVariableName','-append') Related QuestionHow can i store a .mat file into a variableHow can I save mat files into mat fileTwo mat files inside one mat fileRenaming variable loaded from a file
Best Answer