필터 지우기
필터 지우기

mupad command calling from matlab produce wrong results

조회 수: 1 (최근 30일)
Michal
Michal 2017년 4월 18일
답변: Stefan Wehmeier 2017년 4월 20일
I need to evaluate mupad command "discont" from MATLAB. In Mupad notebook the result is correct and looks like:
But, when I use the feval command from MATLAB I get the wrong result
syms x
f = 1/(log(x) + 1)
feval(symengine,'discont',f,x)
ans =
[ exp(-1), 0]
or evalin command
evalin(symengine,'discont(1/(log(x) + 1),x)')
ans =
[ exp(-1), 0]

답변 (1개)

Stefan Wehmeier
Stefan Wehmeier 2017년 4월 20일
I cannot reproduce this. In any case, you cannot work with intervals in MATLAB; this is why
poles(f)
gives you just the endpoint of the branch cut of log.

카테고리

Help CenterFile Exchange에서 Get Started with MuPAD에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by