Math lab question

4 views (last 30 days)
steven
steven on 8 Sep 2011
Commented: Walter Roberson on 7 Nov 2021
dx+fy=k solve for x
  2 Comments
bym
bym on 8 Sep 2011
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
Walter Roberson
Walter Roberson on 8 Sep 2011
Is this linear algebra or is it a differential equation ?

Sign in to comment.

Answers (2)

Walter Roberson
Walter Roberson on 8 Sep 2011
You will need the Symbolic Toolkit.
solve('d*x+f*y=k','x')

Subarna Parajuli
Subarna Parajuli on 20 Sep 2021
3X+2Y=24
X+Y=12
  1 Comment
Walter Roberson
Walter Roberson on 7 Nov 2021
eqn = [str2sym('3*X+2*Y==24')
str2sym('X+Y==12')]
eqn = 
solve(eqn)
ans = struct with fields:
X: 0 Y: 12

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!