- #1
funyhony
- 9
- 0
i want to loop on K vector values
K = [3 5 7 9 11]
and have with me inside the loop the index of the current vector value
if i made
for K = [3 5 7 9 11]
disp(K)
end
i'll not have the index of K values
i mean when K=9 i want to know that I'm in index 4
how to make that??
K = [3 5 7 9 11]
and have with me inside the loop the index of the current vector value
if i made
for K = [3 5 7 9 11]
disp(K)
end
i'll not have the index of K values
i mean when K=9 i want to know that I'm in index 4
how to make that??