Cant solve x*A=y
이전 댓글 표시
Hello,
i need to get the solution for:
x*A=y
x=(1xn)unknown
A=(nxm)
y=(1xm)
n>m
I tried x = A'\y';
and x = solve ('x*A=y');
Solve didnt worked at all, and teh upper one seems to work in same cases, but in others it was absolutly wrong:
A =
-1 -1 1 1 1 0
0 0 0 -1 0 1
0 0 0 0 0 0
1 0 0 0 0 0
0 1 0 0 0 0
0 0 -1 0 0 0
0 0 0 0 -1 -1
y =
0 0 0 0 0 1
ans =
-0.0000 0.3333 0 -0.0000 -0.0000 0 -0.3333
Anyone any Idea?
Thanks
Jonas
답변 (1개)
David Young
2012년 1월 16일
A is rank-deficient, so there isn't a unique solution.
If you modify A to give it full rank, then
x = y/A
computes x such that x*A is close to y.
카테고리
도움말 센터 및 File Exchange에서 Mathematics에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!