Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #12216
| From | kiwibooga@googlemail.com |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Bode Plot slow under Manipulate |
| Date | 2012-11-01 07:25 +0000 |
| Message-ID | <k6t84g$1nt$1@smc.vnet.net> (permalink) |
| Organization | Time-Warner Telecom |
I am using the BodePlot command within Manipulate but find it slow and jerky compared to normal plot. For what it is doing it should be faster, or am I missing a trick?
V8 on Mac OS 10.6 MacBook Pro
Compare two methods of plotting a second order transfer function with variable damping - one using built in BodePlot and another using a LogLinearPlot
Gpp[\[Zeta]_] = \[Omega]^2/(s^2 +
2.0*\[Zeta]*\[Omega]*s + \[Omega]^2);
\[Omega] = 10000.0;
Manipulate[
BodePlot[Gpp[\[Zeta]] /. {s -> s*2 \[Pi]}, {10, 10^6},
ImageSize -> 300, GridLines -> Automatic,
GridLinesStyle -> Red], {{\[Zeta], 0.5, "damping ratio"}, 0, 1,
Appearance -> "Labeled"}];
MyBodePlot[tf_] :=
Manipulate[
Column[{LogLinearPlot[
20*Log10[Abs[tf[\[Zeta]] /. s -> 2.0*\[Pi]*I*f]], {f, 10, 10^6},
ImageSize -> 300, GridLines -> Automatic,
GridLinesStyle -> Red],
LogLinearPlot[
180*Arg[tf[\[Zeta]] /. s -> 2.0*\[Pi]*I*f]/\[Pi], {f, 10, 10^6},
ImageSize -> 300, GridLines -> Automatic,
GridLinesStyle -> Red]}], {{\[Zeta], 0.5, "damping ratio"}, 0,
1, Appearance -> "Labeled"}];
MyBodePlot[Gpp]
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
Bode Plot slow under Manipulate kiwibooga@googlemail.com - 2012-11-01 07:25 +0000
csiph-web