I am converting some old Julia 0.5 code into Matlab. I know broadcasting uses the dot notation but I don’t understand why you would want to use:

L = getindex.(L,1)

inside a for or while loop in Julia code. At the command prompt you get the same as the variable name as output so in Matlab I am just ignoring the getindex part so:

g = getindex.(function(blah),1)

I just say is:

g = function(blah)

which seems to work fine but I must be missing the point of what the original code was trying to do.

thanks,