asymptotic magnitude bode plot of fractional order transfer function
4 ビュー (過去 30 日間)
古いコメントを表示
how do i plot figure 2 of fractional zero
figure 1 code
(clc;clf;
clear all;close all;
alpha=0.02;
Wcr=10;
w1=logspace(-1,log10(Wcr),1000);
w2=logspace(log10(Wcr),3,1000);
Mag1=20*alpha*ones(1,numel(w1));
Mag2=@(w2) 20*alpha*log10(w2);
semilogx(w1,Mag1);
hold on;
semilogx(w2,Mag2(w2));
grid on;
xlabel('Frequency');
ylabel('Magnitude dB'))
0 件のコメント
回答 (1 件)
Birdman
2020 年 3 月 30 日
The following code should give you what you want:
hold off;
alpha=0.9;Wcr=2;
w1=logspace(-1,log10(Wcr),1000);w2=logspace(log10(Wcr),3,1000);
Mag1=20*log10(Wcr)*ones(1,numel(w1));Mag2=@(w2) 20*log10(w2);
semilogx(w1,Mag1);hold on;semilogx(w2,Mag2(w2));grid on;xlabel('Frequency');ylabel('dB')
clear
clc
syms w alpha
alpha=0.9;beta=2;
w=logspace(-1,3,1000);
Mag1=@(w) 20*log10(abs(sqrt(((1i.*w).^alpha+beta).^2)));
semilogx(w,Mag1(w));hold on;grid on;xlabel('Frequency');ylabel('dB')
7 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!