Singular value decomposition using matlab

Click For Summary
SUMMARY

The discussion focuses on performing Singular Value Decomposition (SVD) using MATLAB for two matrices, A and B. The user attempted to compute SVD on the product of the matrices (A*B) but encountered an error due to incompatible dimensions for multiplication. The correct approach is to compute the SVD separately for each matrix using the MATLAB function svd.

PREREQUISITES
  • Understanding of matrix operations and dimensions
  • Familiarity with MATLAB programming environment
  • Knowledge of Singular Value Decomposition (SVD) concepts
  • Basic linear algebra principles
NEXT STEPS
  • Learn how to perform SVD in MATLAB using svd function
  • Explore matrix multiplication rules and dimensionality
  • Study the implications of SVD in data reduction and feature extraction
  • Investigate error handling in MATLAB for matrix operations
USEFUL FOR

Students, researchers, and professionals in mathematics, data science, and engineering who are working with matrix computations and require an understanding of SVD in MATLAB.

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
 

Similar threads

  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 6 ·
Replies
6
Views
4K
  • · 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
2K