I have a mat file with 10 (columns) x 3 (rows) of data and I would like to retrieve these data to produce some readable output via certain functions. For example, the first column of data is 1 0 0 and the output will be Yes.
May I know how can I perform the first step, which is how to retrieve/read the data from the mat file which saved in laptop?
Assuming the name of your ‘.mat’ file as ‘xyz.mat’ and the variable stored in .mat file had same name as the file.
Note: Here I have assumed that array xyz was stored as xyz.mat , if the array name was different from filename given to the .mat file then you will have to use the array name in the if statement . e.g. if you stored an array named abcd as xyz.mat then when you use load(‘xyz.mat’) the array gets loaded with its original name (abcd) and not the file name xyz