I have two variables as output from a simulink model, A and B.
A has 500001 rows and 1 column (5000001x1 double)B has 500001 rows and 1 column (5000001x1 double)
I want a code which saves my data as .mat
save('AB.mat','A','B'); % save('FileName','Variables');
but only the half values of A and B respectivly.
For example,
A = [ 250001 250002 250003 ... 500001];B = [ 250001 250002 250003 ... 500001];
Best Answer