When I try to calculate a matrix inverse using Matlab\'s inv() operation:
A = rand(10,10);
b = rand(10,1);
C = inv(A);
D = C*b;
I get the foll
If you absolutely need the inverse later on, then you have to compute it. If you can use the backslash operator (\
) instead of an inverse again later on, I would stay away from the inverse and listen to MATLAB's suggestion. For numerical reasons, it is always better to use a slash operator when you can, so the second approach is better even though it is slower.