필터 지우기
필터 지우기

Change of scale in Bode Magnitude Plot

조회 수: 16 (최근 30일)
sergio cunha
sergio cunha 2023년 8월 8일
답변: Shreeya 2023년 8월 30일
Is it possible to have the Bode Magnitude plot in Log10 scale instead of decibels? If so, what is the procedure?
Thank you very much
S Cunha

답변 (1개)

Shreeya
Shreeya 2023년 8월 30일
Hi
I understand you want to plot the bode magnitude plot in log10 scale.
You can follow the following steps for it:
  • Obtain the bode magnitude values using the "bode" function.
  • Convert the values to log scale using the "log10" function
  • Plot the obtained values in log10 base against frequency.
I'm attaching an example code and documetation links for the functions used below
H=tf([1],[1,1]); % sample transfer function
[mag,phase,wout] = bode(H); % obtain magnitude response
magLog10 = log10(mag); % convert to log10 base
magLog10 = reshape(magLog10, [size(wout),1]);
plot(log10(wout), magLog10)

카테고리

Help CenterFile Exchange에서 Get Started with Control System Toolbox에 대해 자세히 알아보기

제품


릴리스

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by