Error in syms x

15 ビュー (過去 30 日間)
Brallan Rueda Mantilla
Brallan Rueda Mantilla 2020 年 12 月 13 日
Whenever I am going to declare a variable I get this

回答 (2 件)

John D'Errico
John D'Errico 2020 年 12 月 13 日
Did you either edit the function sym, or create a function or script of your own by that name? This will tell you if you created something by that name.
which syms -all
If I had to guess, you managed to edit the function sym, and then you saved the function after modification. Tht is a BAD thing to do. Essentially you corrupted that function.
  3 件のコメント
Brallan Rueda Mantilla
Brallan Rueda Mantilla 2020 年 12 月 13 日
What can i do to fix it
John D'Errico
John D'Errico 2020 年 12 月 14 日
編集済み: John D'Errico 2020 年 12 月 14 日
You can not edit the code for tools like sym or syms in the future.
You need to download a new copy of the symbolic toolbox, because we cannot give you the code on Answers. That would violate copywrite laws, and would be against the rules of Answers. But since you can download it anyway, there is no problem.

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


Steven Lord
Steven Lord 2020 年 12 月 14 日
Line 10 of the syms.m function included in Symbolic Math Toolbox is a comment line inside the help text for that function. Line 191 of sym.m is not just the character c. You have most likely written or downloaded syms.m and sym.m files that are shadowing the ones included in Symbolic Math Toolbox. Show what these commands display when you execute them:
which -all syms
which -all sym
Also let's make sure you have Symbolic Math Toolbox installed.
ver symbolic
  3 件のコメント
Brallan Rueda Mantilla
Brallan Rueda Mantilla 2020 年 12 月 14 日
Brallan Rueda Mantilla
Brallan Rueda Mantilla 2020 年 12 月 14 日

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

カテゴリ

Help Center および File ExchangeAssumptions についてさらに検索

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by