Storing an equation then change one variable repeat transfer function
Show older comments
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
Answers (1)
Azzi Abdelmalek
on 14 Nov 2014
1 vote
save your expression in an m-file
Categories
Find more on Dynamic System Models in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!