Indexing, Making Multiple Bode Plots From Same Block Model Using Multiple Inports And Outports
2 views (last 30 days)
Show older comments
I have generated a BlockModel.mdl of multiple transfer function blocks connected together. Furthermore, I have inserted three Inport Blocks and three Outport Blocks where Outport1/Inport1, Outport2/Inport2 and Outport3/Inport3 define three transfer function ranges of interest.
I have also written a "RunFile.m" to plot three Bode Plots for the three transfer function ranges of interest. I defined three Figures, as follows:
1) Fig1 is the Bodel plot for the transfer function from Inport1 to Outport1, 2) Fig2 is the Bodel plot for the transfer function from Inport2 to Outport2, 3) Fig3 is the Bodel plot for the transfer function from Inport to Outport3
Meanwhile, when I ran the RunFile, Fig1, Fig2 and Fig3 were identical with each containing the three gain & phase plots.
How can I index them so that Figs1,2&3 are as defined above?
Thanks.
Mark
1 Comment
Craig
on 13 Jul 2012
Can you post the code from "Runfile.m"?
Without seeing the m-file im not sure if your issue is with indexing into a mimo system (e.g. sys(1,1), sys(2,2) and sys(3,3)).
Answers (0)
See Also
Categories
Find more on Get Started with Control System Toolbox 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!