Singular value decomposition using matlab

Click For Summary
The discussion revolves around calculating the Singular Value Decomposition (SVD) of two matrices, A and B, using MATLAB. The user initially attempted to multiply the matrices before applying SVD but encountered an error due to incompatible dimensions. It was clarified that the correct approach is to compute the SVD separately for each matrix, A and B, rather than their product. The user confirmed the need to calculate different SVDs for each matrix. This highlights the importance of understanding matrix dimensions in linear algebra operations.
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
 
Question: A clock's minute hand has length 4 and its hour hand has length 3. What is the distance between the tips at the moment when it is increasing most rapidly?(Putnam Exam Question) Answer: Making assumption that both the hands moves at constant angular velocities, the answer is ## \sqrt{7} .## But don't you think this assumption is somewhat doubtful and wrong?

Similar threads

  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
9
Views
2K
Replies
7
Views
2K
Replies
3
Views
1K