How do you get every index of a vector inside a loop, this is to pass a function the values of vector
vector =[ 20 , 30 , 60 ,45 ,26 ,17 ,28,9, 10,3 ]
n = 10
for i=1:n
somefunt( vector(i) );
end
So this is translated
somefunt( vector(20) );
somefunt( vector(30) );
somefunt( vector(60) );
...
How to do this?