Faster way than "subs" function for Symbolic substitution

8 vues (au cours des 30 derniers jours)
Jack_111
Jack_111 le 16 Oct 2013
I want to ask if there is a faster way for Symbolic substitution than using the Function "subs"
It took with me for substituting 0.12 second and I am running that in a for loop because I have every time new variables to use and the for loop is running around 300000. So is there faster way?

Réponse acceptée

Jack_111
Jack_111 le 16 Oct 2013
I found the Answer
using matlabFunction. It takes a longer time to generate a file but,after that things will be faster. And as long as I want to substitute in the for loop so this one is incredibly faster. It took 0.0008 sec

Plus de réponses (0)

Catégories

En savoir plus sur Loops and Conditional Statements dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by