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

5 views (last 30 days)
.

Answers (1)

Anjaneyulu Bairi
Anjaneyulu Bairi on 13 Oct 2025 at 9:39
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!

Tags

Community Treasure Hunt

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

Start Hunting!