I have a problem with solve command

2 次查看(过去 30 天)
>> syms x
>> syms y
>> syms z
>> [x,y]=solve('3*x-y=2','x+y=1')
Check for incorrect argument data type or missing argument in call to function 'solve'.
>> [x y]=solve('3*x-y=2','x+y=1')
Check for incorrect argument data type or missing argument in call to function 'solve'.

采纳的回答

Kevin Holly
Kevin Holly 2023-1-24
The format you are using is no longer supported. Please see documentation for solve.
syms x
syms y
syms z
[x,y]=solve(3.*x-y==2,x+y==1)
x = 
y = 

更多回答(1 个)

Torsten
Torsten 2023-1-24
syms x y
[x y] = solve([3*x-y==2,x+y==1])
x = 
y = 

类别

Help CenterFile Exchange 中查找有关 Formula Manipulation and Simplification 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by