issues with syms function
古いコメントを表示
Whenever I use the syms (symbolic function) code I keep getting errors, even on simple codes that I am sure they are correct.
For example this simple code
syms a [1 4]
a
The output
Error in syms (line 227)
defined = sym(zeros(1, length(args)));
Error in quiz (line 1)
syms a [1 4]
9 件のコメント
Ameer Hamza
2020 年 10 月 8 日
編集済み: Ameer Hamza
2020 年 10 月 8 日
What is the complete error message? Can you show the output of
which sym -all
Reem Alblooshi
2020 年 10 月 8 日
Walter Roberson
2020 年 10 月 8 日
There would have been more to the error message, such as an error that args was not defined, or that sym was being called as a function by is a script, or something.
Reem Alblooshi
2020 年 10 月 8 日
Ameer Hamza
2020 年 10 月 8 日
Have you tried changing the file sym.m installed by MATLAB? To check, run the following in the command window
edit sym.m
it will open a file. See if the first line of the file is
classdef sym < handle
Reem Alblooshi
2020 年 10 月 10 日
GAGANDEEP KAUR
2020 年 10 月 27 日
I also have some problem with using syms a b c d e , my program keeps on running and when I am pausing it, it is opening sym.m file.
Although first line of the file is
classdef sym< handle
If anyone can help?
Walter Roberson
2020 年 10 月 27 日
restoredefaultpath
rehash toolboxcache
syms x
and see if that works.
I suspect you have a third-party function that is interfering with operation the Mathworks sym.m
GAGANDEEP KAUR
2020 年 10 月 27 日
I have tried as you adviced but still it is keep on running. If possible may you please have a look at attcahed files
採用された回答
その他の回答 (1 件)
madhan ravi
2020 年 10 月 8 日
0 投票
You have a custom file named sym.m , remove it from the path or rename it.
カテゴリ
ヘルプ センター および File Exchange で Conversion Between Symbolic and Numeric についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
