Simulink Singular Value Decomposition (SVD) Bug?

I have a matrix that when passed through a SVD simulink block would return a V matrix (specifically, the last column is the negative of the other) that differs from one that is returned in Matlab (even when using the econ option)…

I work in the same workspace ie, I’m using the source block to define the matrix in Simulink

I have tested several a few matrices, run into the same issue everytime.

An example matrix is [1.0916 0.0595 -0.0324; 0.0595 1.0386 -0.0210; -0.0324 -0.0210 0.0115]

This would give a different v matrix in Matlab than one given in Simulink…

I haven even tried running a embedded Matlab function using svd and still ran into the same problem.

I am using R2008B, doubt this is an issue???

ANSWER

Matlabsolutions.com provide latest MatLab Homework Help,MatLab Assignment Help for students, engineers and researchers in Multiple Branches like ECE, EEE, CSE, Mechanical, Civil with 100% output.Matlab Code for B.E, B.Tech,M.E,M.Tech, Ph.D. Scholars with 100% privacy guaranteed. Get MATLAB projects with source code for your learning and research.

It’s not a bug, the difference you see is simply the signs on the elements of u are the opposite, but that is also true for the v matrix, so that

u*s*v’ still gives you the factorization of the input matrix

If you look at the output of svd() and compare that to the SVD block in the Signal Processing Blockset, the elements of u and v are equal in magnitude but opposite in sign. The singular values are the same.

Simple! That is me, a simple person. I am passionate about knowledge and reading. That’s why I have decided to write and share a bit of my life and thoughts to.