Effacer les filtres
Effacer les filtres

Can I change the Simulink default settings in bode plots like frequency unit in Hz instead rad/s and define a fix frequency range in "Model Linearizer"?

15 vues (au cours des 30 derniers jours)
Hello,
I would like to change the default settings described in the title, because I need to create different Bode plots with the same settings in Hz and a fixed frequency range.
At the moment I have to reset these settings in each study.
Thanks for the answer

Réponses (1)

vidyesh
vidyesh le 23 Avr 2024
Hi Rai,
  • You can change the unit of frequency in the plots using the 'Toolbox Preferences Editor'.
"The Toolbox Preferences editor allows you to set plot preferences that will persist from session to session."
  • For setting a fixed frequency range for multiple plots, you can download all the plots as MATLAB figures (.FIG) and then run the below script to set the frequency range.
%List of all figures
fig_list = ["fig1.fig", "fig2.fig", "fig3.fig"];
for i = 1:numel(fig_list)
curr_fig = fig_list(i); %Open a figure
q = open(curr_fig);
ax = q.CurrentAxes;
ax.XLim = [3 8]; %Set the desired range
%saveas(gcf,curr_fig); % Overwrite the figure
close %Close the figure
end
Hope this helps!

Catégories

En savoir plus sur Plot Customization dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by