How to loop through a vector that corresponds to another vector MATLAB
<p>I have a column of years from 1981 to 2000 that corresponds to another column of prices for a good. I am trying to make a loop that iterates through only the years from 1990 to 2000 and prints the prices in order that correlates with their year. I have this code so far but I'm not sure why it won't run, any help would be awesome. </p>

<pre><code>for x=1:year == 1990:2000
v = find(isfinite(price));
v
end 
</code></pre>