Singular value decomposition using matlab

In summary, Singular value decomposition (SVD) is a mathematical technique used to decompose a matrix into three simpler matrices: a diagonal matrix of singular values, and two orthogonal matrices. It is commonly used in data analysis and signal processing. SVD is important because it allows for dimensionality reduction while preserving important information. In Matlab, SVD can be calculated using the <code>svd()</code> function. SVD is closely related to principal component analysis (PCA), but while SVD can be used for any matrix, PCA is specifically used for data matrices. SVD can also be used for image compression by reducing the number of singular values used in the decomposition.
  • #1
zairizain
5
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
  • #2
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)
 
  • #3
So I should calculate different SVD? thanks
 

What is singular value decomposition (SVD)?

Singular value decomposition (SVD) is a mathematical technique used to decompose a matrix into three simpler matrices: a diagonal matrix of singular values, and two orthogonal matrices. It is commonly used in data analysis and signal processing.

Why is SVD important?

SVD is important because it allows us to reduce the dimensionality of a dataset while preserving the most important information. This can help with data visualization, feature extraction, and noise reduction.

How is SVD calculated using Matlab?

In Matlab, SVD can be calculated using the svd() function. The syntax is [U, S, V] = svd(A), where A is the matrix to be decomposed, U and V are the orthogonal matrices, and S is the diagonal matrix of singular values.

What is the relationship between SVD and principal component analysis (PCA)?

SVD is closely related to PCA, as both techniques involve decomposing a matrix into its constituent parts. However, while SVD is used for any type of matrix, PCA is specifically used for data matrices. Additionally, PCA uses the eigendecomposition of the covariance matrix, while SVD uses the singular value decomposition of the data matrix.

Can SVD be used for image compression?

Yes, SVD can be used for image compression by reducing the number of singular values used in the decomposition. This results in a lossy compression, but the most important information is retained and the image quality is still relatively high.

Similar threads

  • Calculus and Beyond Homework Help
Replies
1
Views
638
  • Calculus and Beyond Homework Help
Replies
10
Views
1K
  • Calculus and Beyond Homework Help
Replies
6
Views
3K
  • Calculus and Beyond Homework Help
Replies
4
Views
1K
  • Calculus and Beyond Homework Help
Replies
8
Views
946
  • Calculus and Beyond Homework Help
Replies
2
Views
1K
  • Calculus and Beyond Homework Help
Replies
4
Views
2K
  • Calculus and Beyond Homework Help
Replies
9
Views
1K
  • Calculus and Beyond Homework Help
Replies
4
Views
2K
  • Calculus and Beyond Homework Help
Replies
2
Views
383
Back
Top