- 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?
Unable to called a function
1 次查看(过去 30 天)
显示 更早的评论
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
2024-7-15
Where is the function rk78_mex located?
回答(2 个)
Walter Roberson
2024-7-15
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
0 个评论
Steven Lord
2024-7-15
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'))
I've seen this commonly in the past few years with older MEX-files that the authors have not built on Apple Silicon.
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!