- #1
magda3227
- 19
- 0
As far as I know, matrices cannot be divided, you have to multiply one matrix by the inverse of the other...I believe.
However, I am converting MatLab code into ANSI C and MatLab apparently divides two matrices. An example is the following...
>>A=[1.5708 1.5708];
B=[0.4937 0.7652];
A/B
ans =
2.3846
I have no idea how MatLab generated this answer. I try to find the inverse of the second matrix, but since it is a non-square matrix, MatLab denies my request. Can anyone aid me in figuring out how such an answer was calculated? Thank you in advance.
However, I am converting MatLab code into ANSI C and MatLab apparently divides two matrices. An example is the following...
>>A=[1.5708 1.5708];
B=[0.4937 0.7652];
A/B
ans =
2.3846
I have no idea how MatLab generated this answer. I try to find the inverse of the second matrix, but since it is a non-square matrix, MatLab denies my request. Can anyone aid me in figuring out how such an answer was calculated? Thank you in advance.