i made exe file from simulink model using rsim method. i followed this link how to import mat file to simulink? that means i made simulinks input to mat file called "suma", and then comppiled it, "suma" is a mat file I save my variables from GUI.
the problem is that when i change my variables in GUI, and the "suma" varibales in that mat file change, my exe file still uses the old values that i used to compile it. here is the code
a=get(handles.abroj, 'String');
b=get(handles.bbroj, 'String');
a=str2num(a);
b=str2num(b);
save('file_path_for_suma.mat','a','b');
system('file_path_for_exe_file') %this is for starting exe file?
zbroj3=load(file_path_to_output_exe_mat_file)