필터 지우기
필터 지우기

Undefined function or variable 'matlabFunction'.

조회 수: 3 (최근 30일)
Svyatoslav Kharitonov
Svyatoslav Kharitonov 2017년 4월 3일
댓글: Svyatoslav Kharitonov 2017년 4월 4일
Dear all,
I am trying to use 'matlabFunction' feature to convert a symbolic expression into the function. I used an example, given in a help file:
syms x y
r = sqrt(x^2 + y^2);
ht = matlabFunction(sin(r)/r, cos(r)/r)
However, what I always get, is a error message: Undefined function or variable 'matlabFunction'.
I am sure, Symbolic Math Toolbox is installed, cause in the uninstall menu all of the toolboxed as checked as available.
Any suggestions how to make it working?
Thank you in advance!

답변 (2개)

Star Strider
Star Strider 2017년 4월 3일
If you have the Symbolic Math Toolbox from R2008a or later, you will have matlabFunction.
  댓글 수: 5
Star Strider
Star Strider 2017년 4월 4일
See if rebooting MATLAB solves that problem.
Svyatoslav Kharitonov
Svyatoslav Kharitonov 2017년 4월 4일
Re-installation of MATLAB did solve the problem.

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


Walter Roberson
Walter Roberson 2017년 4월 4일
A couple of people have reported this in the past for R2016a. The solution appears to be to reinstall the Symbolic Toolbox

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by