To plot two bode diagrams, one is obtained from linearization tool and the other one is obtained from calculated transfer function, in a single figure.
조회 수: 9 (최근 30일)
이전 댓글 표시
Hello,
I have done linearization of my simulink model using 'Model Linearizer' tool. Now I want to have two bode plots, one is obtained from this linear analysis and the other one is obtained using calculated transfer function in a single figure. I am able to have these bode plots in two saparate files but not able to plot them together in single figure. I tried 'hold on' function while plotting the bode diagram of calculated transfer function but it is not giving the desired results. Can you please give me some suggestions to plot them together ?
I think if I can extract the data from results of linearization and bring it to the Matlab worksapce then it may work. Can you please guide me how to do that ?
Thank You.
댓글 수: 0
채택된 답변
Paul
2020년 11월 5일
There should be a Data Browser pane on the left side of the Linear Analysis Tool window. If you can't see the pane, then you might need to click the Data Browser tab on the left edge of the window and Restore it. Once you have the Data Browser open you can click and drag variables from the Base Workspace into the Linear Analysis Worksapce or go the other way. If you're working in the base workspace, you can make your Bode plot at the Matlab command prompt:
>> bode(sys1,sys2) % or use any other options of the bode command
If you want to work in the Linear Analysis Tool, highlight the variables you want in the Data Browswer -> Linear Analysis Workspapce pane and then select the plot you want under the Plots and Results tab.
댓글 수: 0
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!