Unfamiliar error message from ode45: "Unrecognized function or variable 'packageAsFuncHandle".

One of my students is receiving this message when trying to run ode45 from her computer. Running the exact same script on another machine does not throw an error. I've had her uninstall and reinstall MATLAB but getting the same results. Has anyone else experienced this? Haven't seen it anywhere else on the forum/community. Thanks!

 採用された回答

More likely than not they have an ode45.m file that's not in the correct location that MATLAB expects it to be. What does this function return when executed on that student's machine?
which -all ode45
/MATLAB/toolbox/matlab/funfun/ode45.m /MATLAB/toolbox/nnet/deep/@dlarray/ode45.m % dlarray method
If you see an ode45.m that's in a different location relative to matlabroot (which for MATLAB Answers is /MATLAB/) on that machine, please rename it.

2 件のコメント

Brodie
Brodie 2023 年 5 月 1 日
Success! Thank you, @Steven Lord for a swift and succinct answer!
Onassis
Onassis 2024 年 8 月 1 日
Worked for me. Thanks for the solution

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeProgramming についてさらに検索

製品

リリース

R2022a

タグ

質問済み:

2023 年 5 月 1 日

コメント済み:

2024 年 8 月 1 日

Community Treasure Hunt

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

Start Hunting!

Translated by