How to expand a vector of size 2x2 a dummy dimension 2x2x1? I need a three-dimension vector to put into my function. I have searched online but do not get a solution.