Good morning everyone. Every time i try to use "syms", matlab returns an error saying "syms" is not found in the current path, but can be added to it. I do what matlab suggests and it all works. However, this "adding syms to the current path" lasts only for the current section. Anytime I close matlab I have to do it again. Is there anyway to add "syms" to the current folder on start up?

 採用された回答

Ameer Hamza
Ameer Hamza 2020 年 4 月 28 日

1 投票

syms should be on the path by default. It seems like you have messed up the MATLAB paths. You can try to restore them by running this command: https://www.mathworks.com/help/matlab/ref/restoredefaultpath.html
restoredefaultpath

6 件のコメント

Matteo Campagnoli
Matteo Campagnoli 2020 年 4 月 29 日
I think I have indeed messed up with MATLAB paths, a few times ago I installed Maple and set up the symbolic toolbox to work with Maple instead of matlab. Then I unistalled Maple. I think this is the cause of my problem. Your solution does indeed work, but only in the current session. Every time I close and re-open MATLAB I have to execute that command again.
Walter Roberson
Walter Roberson 2020 年 4 月 29 日
savepath
Matteo Campagnoli
Matteo Campagnoli 2020 年 4 月 29 日
It Worked! Thanks a lot
Ameer Hamza
Ameer Hamza 2020 年 4 月 29 日
編集済み: Ameer Hamza 2020 年 4 月 29 日
Matteo, no need to flag the answer. A flag is usually used to indicate something negative, like a violation of community guidelines. Just commenting that the solution worked for you enough. I removed the flag, considering that you accidentally flagged the answer.
Matteo Campagnoli
Matteo Campagnoli 2020 年 4 月 30 日
I'm sorry, I'm kind of a newbie on this forum and on matlab itself. Let me know if there's anything more i should do. Best regards
Ameer Hamza
Ameer Hamza 2020 年 4 月 30 日
No problem. Accepting an answer is enough. I am glad to be of help.

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

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by