1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
for k=1:5
    if (k==1)
        result = someFunction(someVar, 10)
    elseif (k==2)
        result = someFunction(someVar, 20)
    elseif (k==3)
        result = someFunction(someVar, 30)
    elseif (k==4)
        result = someFunction(someVar, 40)
    elseif (k==5)
        result = someFunction(someVar, 50)
    end

    k = k + 1
end