필터 지우기
필터 지우기

How can I insert a function in a result in a script?

조회 수: 1 (최근 30일)
Sergio Manzetti
Sergio Manzetti 2017년 7월 14일
Hello, I have the final part of a fully working script:
res = (-1)^(n+m)*res
where "res" gives the result:
diff(f(x,y), x) + diff(f(x,y), x,y)
In this result, I'd like to insert the function sin(x), so the output goes straigth to
cos(x)
How can I insert sin(x) after the scirpt has been executed so that it goes in the result and gives a final result?
I tried:
for res subs(f(x,y), exp(-i.*(x+y))) end
but it didnt work

답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by