Path(pathdef) Error
Mostra commenti meno recenti
Hello Community,
I get an error when I execute below. Can you please direct to what could go wrong with pathdef and the resolution of this error?
Thank you in advance!
>> Run_Script
Index exceeds matrix dimensions.
Error Run_Script (line 2)
path(pathdef)
Risposte (1)
Steven Lord
il 5 Dic 2023
1 voto
Does your Run_Script script file define a variable named path on line 1, right before it tries to call the path function on line 2? [I suspect it does.] As long as that variable exists MATLAB cannot call the path function.
Changing the name of that variable would resolve the problem, but a script file trying to reinitialize the MATLAB search path as part of its execution smells kind of bad to me. Why is your script trying to do that?
4 Commenti
Samy Alkhayat
il 6 Dic 2023
Do you have a variable named path in your workspace when you run the script? To check use this command.
which -all path
Samy Alkhayat
il 6 Dic 2023
Samy Alkhayat
il 11 Gen 2024
Categorie
Scopri di più su Startup and Shutdown in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!