SVD and RREF don't give same result
    조회 수: 1 (최근 30일)
  
       이전 댓글 표시
    
Hi All,
I am having a problem with SVD. The function rref works fine for solving a set of overdefined linear equations AX=b; but I am having a trouble to get the same result using SVD.
For rref, i was using the synatx solution=rref([A,b]) and it gave correct result
For SVD, i was using the syntax [u, s, v]=svd(A,0) and then solution=v*((u'*b)./diag(s))
However, the solutions are completely different. What should I do for achieving the same result
Thanks in advance Sudipta
댓글 수: 6
  Matt J
      
      
 2014년 5월 24일
				Use the SAVE command to save variables to a .mat file (and the LOAD command to reload them).
답변 (0개)
참고 항목
카테고리
				Help Center 및 File Exchange에서 Numerical Integration and Differential Equations에 대해 자세히 알아보기
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

