Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Forums > General Electronics Chat > Homework Help


Homework Help If you have a question about an electronics exam, course or paper you can ask in this forum.

Reply
 
Tools
Old 14th June 2009, 11:02 AM   #1
Default Math Help

Given:

X = [ 1 1
1 1.5
1 3
1 3.5
1 4]

d = [ 3.5
2.5
2
1
1]

how do i get w = [X^T (X)]^-1 (X^T) d

The ans is [ 4.04
- 0.78]

I tried, but i cant the answer.
Can anyone advise me
Thanks.
shermaine is offline  
Old 14th June 2009, 04:57 PM   #2
Default

Hi,

You must know a few things in order to solve this:

1. How to multiply matrixes and vectors.
2. How to compute the transpose of a matrix.
3. How to find the inverse of a matrix.


If you do not know how to do any of the above let us know.

If you do, then you proceed as follows:

1. Calculate the transpose of X, call this T.
2. Calculate T*X in that order using vector/matrix multiplication, call the result Y.
3. Find the inverse of Y (which is Y^-1), call that I.
4. Multiply I*T, call that S.
5. Finally, multiply S*d and that result is the answer which is approximately:
[4.037313433,
-0.783582090]

Remember that when you do matrix multiplication you have to observe the correct order as you
can not reverse the order like you can do with regular single number arithmetic multiplication like
2*3=6.

Last edited by MrAl; 14th June 2009 at 05:00 PM.
MrAl is offline  
Reply

Tags
math

Thread Tools
Display Modes


Similar
Title Starter Forum Replies Latest
PIC math help electronicsfreak Micro Controllers 20 8th June 2009 05:17 PM
i think it's math! t.man Math and Physics 0 17th October 2008 01:05 PM
Math Help Burnt Math and Physics 4 16th October 2008 10:23 PM
Math help? Mike, K8LH Micro Controllers 10 9th April 2007 11:07 PM
math help shermaine Math and Physics 12 27th November 2006 11:40 AM



All times are GMT. The time now is 11:17 PM.


Electronic Circuits  |  Learning Electronics
eXTReMe Tracker