필터 지우기
필터 지우기

i have 2 linear equations 2 unknowns

조회 수: 1 (최근 30일)
david edwards jr
david edwards jr 2018년 8월 23일
댓글: Star Strider 2018년 8월 23일
b0 = c0+3*c1 b1 = c0-5*c1 unknowns are c0 c1. b0,b1 are non variables which should appear in the solution.
thank you david

채택된 답변

Star Strider
Star Strider 2018년 8월 23일
Using the Symbolic Math Toolbox:
syms b0 b1 c0 c1
Eq1 = b0 == c0+3*c1;
Eq2 = b1 == c0-5*c1;
[c0,c1] = solve(Eq1, Eq2)
produces:
c0 =
(5*b0)/8 + (3*b1)/8
c1 =
b0/8 - b1/8
  댓글 수: 4
david edwards jr
david edwards jr 2018년 8월 23일
thank you! I have a set of equations and a set of variables (c0.c1...) and a set of constants (b0,b1...) and I needed to make a file that mathlab could call. I saw that what I needed is to create a file test.m with the operations as you suggested. this seems to work with 35 equations and 35 variables.
thank you for taking the time to respond. it was the key for me getting matlab working at all. after than it was downhill.
again appreciate your help. david
Star Strider
Star Strider 2018년 8월 23일
My pleasure.
If my Answer helped you solve your problem, please Accept it!

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

david edwards jr
david edwards jr 2018년 8월 23일
it is accepted!!! david

카테고리

Help CenterFile Exchange에서 Mathematics에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by