How do I generate a 1*4 unit matrix perpendicular to a random generated 1*4 matrix in MATLAB?
I was struggling with my MATLAB Assignment help and then a good friend told me about MatlabSolutions.com website and they gave me the best Assignment help ever. I hope to always count on the quality and efficiency of your services.
Let your matrix be [a0 a1 a2 a3][a0 a1 a2 a3], then the following matrices are orthogonal:
[1a0 1a1 −1a2 −1a3][1a0 1a1 −1a2 −1a3]
[1a0 −1a1 −1a2 1a3][1a0 −1a1 −1a2 1a3]
[1a0 −1a1 1a2 −1a3][1a0 −1a1 1a2 −1a3]
This is the generic case with all components nonzero. If one of the components vanishes, say a0=0a0=0, then [b0 0 0 0][b0 0 0 0] is orthogonal to that vector.