Math lab question

dx+fy=k solve for x

2 个评论

is dx a variable or does it mean d*x? what is fy. You have to provide more information to get a better answer than:
x= (k-fy)/d
Is this linear algebra or is it a differential equation ?

请先登录,再进行评论。

回答(2 个)

You will need the Symbolic Toolkit.
solve('d*x+f*y=k','x')
Subarna Parajuli
Subarna Parajuli 2021-9-20

0 个投票

3X+2Y=24
X+Y=12

1 个评论

eqn = [str2sym('3*X+2*Y==24')
str2sym('X+Y==12')]
eqn = 
solve(eqn)
ans = struct with fields:
X: 0 Y: 12

请先登录,再进行评论。

类别

Community Treasure Hunt

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

Start Hunting!

Translated by