I am running a code on autocorrelation in my MATLAB console but it is giving error. Can anyone point out the issue and how to fix it?

1 view (last 30 days)
a = load('60lowfreehigh.lvm');
>> N = 50;
>> y = a;
>> z = a;
>> for i=1: N-1
for i=N-1:-1:1
a(i+1)=a(i);
end
x(1)=0;
a(1)=0;
z = [z;a];
end;
>> m=[z]*[y]';
The above code is returning the error;
Out of memory. Type HELP MEMORY for your options.
What is the problem and how can I fix it?
Thanks,
Anuradha

Answers (0)

Categories

Find more on Software Development Tools in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!