3D scatterplot, matrix operations and calculation of the inverse I have a scatter-plot with the code shown below.