Singular value decomposition using matlab

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
2 replies · 3K views
zairizain
Messages
3
Reaction score
0

Homework Statement


Given matrix,

A= (-1 0 2;2 -1 0)

and

B=(-3 4;2 1)

Find SVD using matlab.


Homework Equations





The Attempt at a Solution



matlab code for svd;

[d,e,f]= svd(c)

c= A*B (but i got an error in MATLAB when i tried this)

thanks
 
Physics news on Phys.org
You got an error because you can't multiply A and B. It sounds like you're just supposed to calculate svd(A) and svd(B)
 
So I should calculate different SVD? thanks