help with equation substituting

조회 수: 1 (최근 30일)
mohamed
mohamed 2016년 3월 10일
댓글: Walter Roberson 2016년 3월 12일
hi i want to substitute in an equation that has 2 variables (q) and (pwf), given that the user has to input several values for (pwf) to substitute into the equation and solve for (q)
Thank you

채택된 답변

Walter Roberson
Walter Roberson 2016년 3월 10일
Example:
new_pwf = rand();
new_equation = subs(TheEquation, pwf, new_pwf);
sol = solve(new_equation, q)
  댓글 수: 4
mohamed
mohamed 2016년 3월 11일
편집: mohamed 2016년 3월 11일
ty very much you really helped me if i may ask another question whne i substitute into an equation this is the result
q =
1.0e+03 *
1.0670 0.9902 0.8451 0.6317 0.3500 0
i need the results to be
1067 990 845 632 350 0 i dont want them multiplyed by 1.0e+03 and i tried the double() code and it didnt work thank you
Walter Roberson
Walter Roberson 2016년 3월 12일
format long g

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

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by