필터 지우기
필터 지우기

Unable to called a function

조회 수: 32 (최근 30일)
kim
kim 2024년 7월 15일 18:55
답변: Steven Lord 2024년 7월 15일 19:58
I have an Integrators and Deriivatives function, which when I called the integrators, it would said "Unrecognized function or variable 'rk78_mex'.". I have ran this program before but for some reason it is not working now.
  댓글 수: 2
Cris LaPierre
Cris LaPierre 2024년 7월 15일 19:16
Where is the function rk78_mex located?
  • a local function - check your spelling
  • a function file - is it in your current folder? If not, is it in a folder that has been added to your MATLAB path?
kim
kim 2024년 7월 15일 19:33
The function rk78_mex, is a c file which I am calling to intergrated kinda like ode45. the integrator is apart of another folder which is in my documents which is on my path. it part of a github, my groups has.

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

답변 (2개)

Walter Roberson
Walter Roberson 2024년 7월 15일 19:31
You are using a third-party package that implements some of its functionality through mex code. The package is calling upon rk78_mex . However, the system is unable to find a dll named rk78_mex .
You may need to use the mex command to regenerate rk78_mex

Steven Lord
Steven Lord 2024년 7월 15일 19:58
If you're using release R2021b or later, consider using the ode78 function that is part of MATLAB as of that release.
If that is not an option, does the folder containing the rk78_mex MEX file contain an rk78_mex file that has the appropriate extension (as listed by mexext) for your computer's architecture? Often when a MEX-file is not found when a user expects it to be available (perhaps because it works on a colleague's machine) it is because it has not been built for their computer's architecture. A Windows MEX-file (with extension .mexw64) won't run on a Linux machine (which would require a MEX-file compiled for Linux, with the extension .mexa64.)
struct2table(mexext('all'))
ans = 4x2 table
ext arch _____________ ___________ {'mexa64' } {'glnxa64'} {'mexmaca64'} {'maca64' } {'mexmaci64'} {'maci64' } {'mexw64' } {'win64' }
I've seen this commonly in the past few years with older MEX-files that the authors have not built on Apple Silicon.

카테고리

Help CenterFile Exchange에서 Ordinary Differential Equations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by