How to Solve sets of equations with constants

조회 수: 37 (최근 30일)
Ali Arman Khurshid
Ali Arman Khurshid 2019년 8월 8일
답변: Star Strider 2019년 8월 8일
'
How would you solve the set of equations above in Matlab so that you get the solution for c and d in terms of EI,q and L?
Thanks

채택된 답변

Star Strider
Star Strider 2019년 8월 8일
The derivatives are uniformly 0, so the equations are constant, by definition. There is no reason to integrate them.
Try this:
syms d c EI q L
Eqs = [2*EI*(3*d*L^2+2*c*L)+q*L^3/4-q*L^3/3; 6*EI*(2*d*L^3+c*L^2)+q*L^4/5-q*L^4/3];
[c,d] = solve(Eqs, [c,d])
producing:
c =
(L^2*q)/(60*EI)
d =
(L*q)/(360*EI)

추가 답변 (1개)

Torsten
Torsten 2019년 8월 8일
Multiply the first equation with 2 and subtract the second. d cancels out and you can solve for c.
Multiply the first equation with 3 and the second equation with 2. Then subtract the (new) second equation from the (new) first equation. c cancels out and you can solve for d.

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by