- 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
32 ビュー (過去 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 日 19:16
Where is the function rk78_mex located?
回答 (2 件)
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
0 件のコメント
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'))
I've seen this commonly in the past few years with older MEX-files that the authors have not built on Apple Silicon.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Ordinary Differential Equations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!