Storing an equation then change one variable repeat transfer function
Afficher commentaires plus anciens
Hi i am using the trial version and I am very new to this.
I have created a transfer function and in it's denominator (which has 5 terms) I have an equation expressed as
den = [c2^2*r2^2*c4*r4 c2^2*r2^2*c4+2*c2*r2*c4^2*r4 c2^2*r2^2*c4*r4+2*c2*r2*c4*r4+c2^2*r2^2+c4^2*r4+2*c2*r2*c4 2*c2*r2+c4*r4+c4 1]
When I save and reload my workspace it seems I have to re-enter this equation if I want to change one variable to a new value so I am able to obtain a new transfer function, bode or nyquist plot.
Is there a way to store this equation, expressed algebraically as shown above, so that if I change one variable (after reloading my workspace) I do not have to retype(cut/paste) this expression?
Cheers
Dave
Réponses (1)
Azzi Abdelmalek
le 14 Nov 2014
1 vote
save your expression in an m-file
Catégories
En savoir plus sur Dynamic System Models dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!