how can i produce svd inverse?
7 次查看(过去 30 天)
显示 更早的评论
Hi,I want to use SVD function in matlab and make some changes on S matrix of svd then I want to reproduce the first matrix. how can I do it?for example we use idct2 after using dct2 is there any function like this for svd inverse or we should multiply U*S*V'?
0 个评论
回答(1 个)
John D'Errico
2016-2-12
The definition of the svd is it factors your matrix A into the factors:
A = U*S*V'
There is no "inverse" function needed. Is a matrix multiply that hard to do? If it makes you happy...
svdinverse = @(U,S,V) U*S*V';
2 个评论
John D'Errico
2016-2-13
Any inverse you would ever find would have EXACTLY the same issue. Surely you do not think that tools like ifft can guarantee an EXACT inverse?
Welcome to the wacky, wonderful, world of floating point arithmetic. Learn what happens when you do virtually any operations with real numbers. There will ALWAYS be subtle errors in the least significant bits due to floating point arithmetic in any computation like this.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!