devo usare delle funzioni .m che mi hanno inviato in cartelle a parte, ma anche se le inserisco nella current folder Matlab dice che non riesce a individuarle

回答 (1 件)

Hi,
Here are some possible workarounds you can try:
1.Add the folders to the MATLAB path:
MATLAB can only see functions that are in the current folder or on its search path. To add all subfolders, use:
addpath(genpath('folder_path'))
Replace 'folder_path' with the path to the main folder containing your .m files.
2. Clear and refresh:
After moving files,run below commands
rehash toolboxcache
clear functions
Hope this helps!

カテゴリ

ヘルプ センター および File ExchangeC Shared Library Integration についてさらに検索

タグ

質問済み:

2025 年 10 月 4 日

回答済み:

2025 年 10 月 13 日

Community Treasure Hunt

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

Start Hunting!