I have a 5000x1 vector and am trying to write a function to calculate an answer for entry 1-11, then 12-22, then 23-33, etc. ...(adsbygoogle = window.adsbygoogle || []).push({});

I've been trying to use a 'for' loop, basically:

for i = (???????)

x=i+1

end

Not sure what to put in the ???? area.

I want it to spit out answers for each set of 11 values, but can't figure out how.

**Physics Forums | Science Articles, Homework Help, Discussion**

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Homework Help: MATLAB function: simple 'for' loop. How do you only use a specific part of the data?

**Physics Forums | Science Articles, Homework Help, Discussion**