I have a problem with solve command

>> 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'.

 Respuesta aceptada

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 = 

Más respuestas (1)

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

Categorías

Más información sobre Symbolic Math Toolbox en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 24 de En. de 2023

Comentada:

el 24 de En. de 2023

Community Treasure Hunt

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

Start Hunting!

Translated by