Storing an equation then change one variable repeat transfer function
显示 更早的评论
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
回答(1 个)
Azzi Abdelmalek
2014-11-14
1 个投票
save your expression in an m-file
类别
在 帮助中心 和 File Exchange 中查找有关 Dynamic System Models 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!