I am testing to see if a program that was written with Matlab 2019a will work on Matlab 2012a and I'm running into an error I don't know how to adress. When I run the program it throws an error saying:
"Error using +
Matrix dimensions must agree.
Error in ProcessFilesTry (line 49)
FM = dir(fullfile(filepath,'Processfiles\*FM')+ number+ '_*.ep'); %Pull out the final measurement file being used"
In reference to this block of code
for i = start:out
num_strfinal = num2str(i, '%02.f');
number = char(num_strfinal);
FM = dir(fullfile(filepath,'Processfiles\*FM')+ number+ '_*.ep');
FinalM = getfield(FM, 'name');
IN = dir(fullfile(filepath,'Processfiles\*InM')+ number + '_*.ep');
InitialM = getfield(IN, 'name');
Can someone explain what this error means for Matlab 2012a and any pointers on how to remedy it?