Hello,
I am trying to overwrite a .mat file. I created a sample script to explain the issue. Please see it below. I create a .mat file called bb.mat with three variables. Then I load the file. I assign new values to the same variable and use the save function to overwrite bb.mat. I don't receive any error. But when I load the bb.mat file, it still has the old values. I also noticed that, I cannot delete the bb.mat file. I receive a warning saying that the file was used by Compose. Could you please let me know how I can overwrite a .mat file?
clear all;
close all;
clc;
A=10; B=20; C=30;
save('bb.mat', '-v7.3');
clear all;
close all;
clc;
load('bb.mat');
A=25; B=17; C=0;
save('bb.mat', '-v7.3');
clear all;
close all;
clc;
load('bb.mat');
Thank you
Berker