Hello!
I am looking to extract the coordinates from this array of cartesian indexes in the lokmax vector.
lokmax = vec(findmax(bellman,dims=1)[2])
resulting in
CartesianIndex{2}[CartesianIndex(3, 1), CartesianIndex(3, 2), CartesianIndex(3, 3), CartesianIndex(3, 4)]
The MWE is:
lokmax[1][1]
which gives me one coordinate from one point:
3
but I would like all of them. Does anyone know how to do this? Thanks!