Filter löschen
Filter löschen

why often it takes a very very long time to show the results by using findsym?

6 Ansichten (letzte 30 Tage)
Stanley Cheng
Stanley Cheng am 21 Dez. 2013
Beantwortet: Avadhoot am 21 Aug. 2024 um 7:24
Hi everyone, these days I am using symbolic computation in Matlab.
to substitute the symbol with numerical results, i need to find which symbols in a variable. So the code findsym is applied. However, it takes often quite a long long long time to show the symbols of a variable, as if the results cannot be exhibited in the command window. But it sometimes can show the results of some other counterparts in a reasonable time. However, these variables have the similar complexity, and according to theoretical deduce, they should have the same set of symbols in them. In my file, there are ten symbolic variables in sum. Could anyone tell me what i should do to get the results of findsym ? Thanks very much!

Antworten (1)

Avadhoot
Avadhoot am 21 Aug. 2024 um 7:24
Hi Stanley,
I understand that you are using "findsym" to find the symbols in a variable. This might take a while, depending upon the variables concerned. Please try using the "symvar" function in MATLAB to do the same. MATLAB's "symvar" function is often more efficient than "findsym" for identifying the symbolic variables in an expression.
For more information on how to use "symvar" please refer to the following documentation:
I hope the information helps you.
Regards,
Avadhoot.

Kategorien

Mehr zu Symbolic Math Toolbox finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by