필터 지우기
필터 지우기

how to assign the solution of SVD to different variables

조회 수: 1 (최근 30일)
Sat m
Sat m 2013년 3월 15일
i have defined a matrix
A = [x1*X1 x1*Y1 x1*Z1 x1 -y1*X1 -y1*Y1 -y1*Z1 -y1;x2*X2 x2*Y2 x2*Z2 x2 -y2*X2 -y2*Y2 -y2*Z2 -y2];
now i have done
[U,S,V]=svd(A,0);
%solution of the equation Av=0 is v
v = V(:,end);
disp(v);
i have got 8 solutions. v has 8 different results. now i wish to assign each value to v1, v2, v3 and etc....that means is i have got v = 1, 5.8, 4.5, ..... then i wish to assign v1=1, v2=5.8, v3=4.5 etc..can you please tell me how to do this?

채택된 답변

Youssef  Khmou
Youssef Khmou 2013년 3월 15일
hi, try :
v1=v(1);
v2=v(2);
v3=v(3);
v4=v(4);
v5=v(5);
v6=v(6);
v7=v(7);
v8=v(8);
  댓글 수: 3
Sat m
Sat m 2013년 3월 15일
thank you
Sat m
Sat m 2013년 3월 15일
thank you

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Operating on Diagonal Matrices에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by