Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

How to do SVD without function..?

Asked by Lalit Patil on 26 Nov 2012

I have a Three parameters Xi,Yi,Zi.. and I am finding a SVD of them..

A=[Xi,Yi,Zi,ones(length(Xi),1)];

[U,S,V]=svd(A);

ss=diag(S);

i=find(ss==min(ss));

coeff=V(:,min(i));

coeff=coeff/norm(coeff(1:3),2);

and i am getting four parameters for plane.. the code is ok.. but,

is there any method to do SVD without using SVD function..?

6 Comments

Lalit Patil on 26 Nov 2012

This is not that thing which i want..

I want to know that what procedure happened inside SVD matlab function so that U,S,V get generated..?

Actually i want to write code for that..

Walter Roberson on 26 Nov 2012

The blog has a bunch of links.

Lalit Patil

Products

No products are associated with this question.

1 Answer

Answer by Walter Roberson on 26 Nov 2012

2 Comments

Lalit Patil on 27 Nov 2012

But , I can't understand what the sequence is of mathematical equations.?

I want That equations or code which can be applied insted of SVD functions..

Walter Roberson on 27 Nov 2012

That is the code that is used by MATLAB (though it is not impossible that Mathworks has tweaked the code.) Everything that is documented about exactly how MATLAB's SVD function operates is in that source code (when you include the related files for the routines it calls.)

Walter Roberson

Contact us