Solving an equation with symbolic matrix
조회 수: 3 (최근 30일)
이전 댓글 표시
I've tried solving eq1 in the following program.
The right answer is w = -D*lambda*unos
%start
unos=ones(2,1)
ceros=zeros(2,1)
E = symmatrix('E',2)
D=inv(E)
w=symmatrix('w',[2,1])
eq1= w + D*lambda*unos==ceros
solve(eq1,w)
%end
The right answer is w = -D*lambda*unos
But instead, I get the following message:
Check for incorrect argument data type or missing argument in call to function 'solve'.
Please help
댓글 수: 0
답변 (1개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Symbolic Variables, Expressions, Functions, and Preferences에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!