Saving my path for future sessions.
Mostra commenti meno recenti
I want to save my created path for future Matlab sessions
Risposte (1)
John D'Errico
circa 4 ore fa
Modificato: John D'Errico
circa un'ora fa
The trick here is to use the help, because it teaches you what to use, at least it gives you a hint at how to solve it. If you managed to create a path, then you would have read the help for a tool like addpath, or even pathtool. HAD you read the help for addpath, at the bottom of the help, you would see a see also line. It reads:
See also genpath, path, pathsep, rmpath, savepath
Next, you might look at the names of those functions, and wonder what savepath does. The name is, at least to me, one that indicates its purpose, i.e., it saves your path so that the next time you enter MATLAB the path will be what you created before. It will remember that path as you saved it.
So always remember to look at the see also line. It is there for a very good reason.
help addpath
help savepath
Categorie
Scopri di più su Search Path 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!