I have a problem A= [ 0.0000 1.0000 -0.0000 -0.0001 7.5781 21.2169 -2.4152 -6.1767 0.0000 -0.0004 -0.0000 1.0001 27.2402 78.6220 -8.6725 -22.9705]; A1=[0 1 0 0 7.5781 21.2169 -2.4152 -6.1767 0 0 0 1 27.2402 78.6220 -8.6725 -22.9705]; B1= [0 0 1 0.0022 0 0 0 1]; Now, A=A1+B1*Am What is Am???? I tried to solve it in Matlab but it said Dimension error.It must be because of the fact that A-A1 is 4x4 matrix and B1 is 2*4 matrix.But when I kept the value of B1 in same equation ( for similar other problem) and solved for A, it solved without any problem.Anybody have any idea how to solve it???????
birajasharma · Dec 6, 2009 11:07 PM · 7,856 views
Your dimensions are right. (A-A1) is a 4x4 matrix and B1 is a 4x2 matrix which implies your Am matrix is 2x4. I just tried it in matlab. Type this in your program or command window after defining the matrices A, B1, A1; Am=B1\(A-A1); remember it's \ not / However, Am is coming out to be a zero matrix. I don't know if that is right. Solution from matlab: A = 0 1.0000 0 -0.0001 7.5781 21.2169 -2.4152 -6.1767 0 -0.0004 0 1.0001 27.2402 78.6220 -8.6725 -22.9705 A1 = 0 1.0000 0 0 7.5781 21.2169 -2.4152 -6.1767 0 0 0 1.0000 27.2402 78.6220 -8.6725 -22.9705 B1 = 0 0 1.0000 0.0022 0 0 0 1.0000 Am = 0 0 0 0 0 0 0 0
santosh1984 · Dec 6, 2009 11:31 PM
Thank you Santosh.It was great help.
birajasharma · Dec 7, 2009 1:59 AM
Keep it up guys, it's a good thread. Jaach ma chai malai yeso dekhau hai......bro haru
truthspeaker · Dec 7, 2009 4:00 AM
cheers for the guy like santosh 1984.. guys like you are new hope for sajha.....Nepal ta kaaataam bhayooo ghou....
bostonktm · Dec 7, 2009 2:44 PM
If Am = 0 then A = A1. Clearly that is not true. Look at A(2,3) = -0.0004 and A1(2,3) = 0.Small difference, I suppose. I wonder if this is more subtle?
GuitarDaku · Dec 7, 2009 3:59 PM
This conversation is preserved exactly as it was on the original Sajha.com and can't accept new replies.
Start a New Discussion