Solving an equation with symbolic matrix
6 views (last 30 days)
Show older comments
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 Comments
Answers (1)
See Also
Categories
Find more on Assumptions in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!