필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

syms first then add numbers

조회 수: 2 (최근 30일)
Philosophaie
Philosophaie 2013년 9월 17일
마감: MATLAB Answer Bot 2021년 8월 20일
This may sound silly but I would like to write an equation in "syms" variables to actually see the variables in the equation then after it is printed out add numbers to the equation to get the final results. Is this possible?

답변 (1개)

Walter Roberson
Walter Roberson 2013년 9월 17일
syms x y z
eqn = x^3 + sin(y) - exp(z);
pretty(eqn)
val = subs(eqn, {x, y, z}, {7, pi/3, 1/2});
pretty(val)
double(val)

이 질문은 마감되었습니다.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by