- 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.
Change of scale in Bode Magnitude Plot
16 ビュー (過去 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
0 件のコメント
回答 (1 件)
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:
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)
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Get Started with Control System Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!