How to plot more points with bodeplot

조회 수: 30 (최근 30일)
Diego
Diego 2012년 4월 3일
댓글: Pierre Chassard 2022년 10월 4일
I'm making bode plots of transfer functions, but sometimes I want to check the magnitude a specific frequency and I can't check it because Matlab didn't make a point there (or anyware nearby). Does anyone knows how to force Matlab to make plot points? I'm using bodeoptions to convert the frequency scale from rad/s to Hz, but I could not find any option regarding how many points do I want to plot, or the frequency range. Thanks!

답변 (1개)

Rajiv Singh
Rajiv Singh 2012년 4월 3일
You can specify the frequency vector you want as an input argument to BODE or BODEPLOT. You can also fetch the magnitude/phase explicitly [mag, phase] = bode(sys, my_desired_frequencies)
  댓글 수: 2
Diego
Diego 2012년 4월 3일
Thank you! That really helped me.
Pierre Chassard
Pierre Chassard 2022년 10월 4일
Thank you;
figure(3)
h=bodeplot(FT,'r',(100:1:10000)*(2*pi)) ;
opt = getoptions(h);
opt.FreqUnits = 'Hz' ;
opt.Xlim = [100 , 10000] ;
opt.PhaseMatching= 'on';
opt.Ylim = {[-50 20] [-180 0]};
setoptions(h,opt);
title('FTglobale') ;
legend('FTglobale');
grid on

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Frequency-Domain Analysis에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by