Each file is a recorded channel that contains data logged at high frequency so some files are large with a time stamp.
How to load multiple mat files.
I want to load the files into matlab then multiple each file by a number and save them with as filenames fileprocessed1 mat fileprocessed2 mat and fileprocessed3 mat respectively.
I am trying to subplot the same variable from each of n mat files in a folder.
I am trying to load multiple mat files through a script.
Do not use command form when any of the inputs such as filename are variables the easiest solution is do not use the command syntax in your code only use the function syntax and then you will never face this problem again try this instead.
I have a multiple mat files like 100 file i need to load and extract specific data from those files.
Learn more about load multiple mat files.
The file name corresponds to the channel name allocated in a logging device.
Name of file specified as a character vector or string scalar.
I have files named file1 mat file2 mat and file3 mat.
If you do not specify filename the load function searches for a file named matlab mat.
Where files is treated as a string not a variable.
But i think it might work if i could load each mat file sequentially and refer to the same subplot in the loop.
This is specifically explained in the load documentation.
Filename can include a file extension and a full or partial path.
Ideally i would like to end up with a table with all data combined from all mat files.
If filename has no extension that is no text after a period load looks for a file named filename mat if filename has an extension other than mat the load function treats.
Load multiple mat files.