MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn moreOpportunities for recent engineering grads.

Apply Today**New to MATLAB?**

Asked by Mohammad Golam Kibria
on 11 Oct 2011

for i=1:a:20

idx=find(consecutiveDiff(:,1)==val(i));

a=numel(idx);

end

i need to increment the value i as the value of a is changed. in first execute if a=5 the value of i becomes 2 not 1+5=6 . why ? can any body help?

*No products are associated with this question.*

## 0 Comments