What's wrong with this line A(n,1)= x(n); ?? I find it perfectly correct.
x = load('S_chest');y = load('S_abdomen');for i= 1:length(y) w= [y(i)/(x(i)+x(i-1))]; y(i)= x(i)*w*1+x(i-1)*w*2;end
index out of bounds
x = load('S_chest');y = load('S_abdomen');for i= 1:length(y) w= [y(i)/(x(i)+x(i-1))]; y(i)= x(i)*w*1+x(i-1)*w*2;end
Best Answer