This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

IWR6843AOPEVM: Matlab crashes in lab 20

Part Number: IWR6843AOPEVM

Hi all,

I'm using IWR6843AOPEVM in standalone mode. I'm working with lab 20 ODS demo code. When I'm running it using matlab it crashes after a while.

The error i get is:

Index exceeds matrix dimensions.
h_ind = point3D(3, h_ind);

I also made this change:

if (tind(i) < 20) 

But it still crashes.

After that I commented out this piece of code and then it works without crashes.

for i=1:size(tind)
if (tind(i) < 20) %changed from 30 to 20 ti change
h_ind = mIndex == tind(i);
h_ind = point3D(3, h_ind);
%filtering used if overhead
% d_ind = h_ind(1, :) > 0.5 & h_ind(1, :) < 3;
% h_ind = h_ind(1, d_ind);
height_vals(tind(i) + 1, mod(frameNum, 20) + 1) = max(h_ind);
height_tid(tind(i)+1,1) = getHeight(tind(i), height_vals);
fHist(frameNum).height = [fHist(frameNum).height height_tid(tind(i)+1,1)];
if (i == 1)
p1height = height_tid(tind(i)+1);
end
end
end

What's the issue?

Thanks,

radha.