There are many.mat file (1.mat; 2.mat; 3.mat…), all these files have many variables, however, all these file contains one variable name 'data' (different values in different file). I hope to change the variable name ('data' ) into '1_data.mat, 2_data.mat, 3_data.mat… 'and save these files into another folder. I appreciate it if someone give me some advice. Thanks in advance.
MATLAB: How to save one variable from one .mat file to another .mat file
renamevariable
Best Answer