5 MHz の周波数でマイクロ秒単位で減衰する指数関数的に減衰する正弦波関数があります。
function[t,x]=microsec(a, p, d, f)
% microsec plots an oscillatory transient voltage disturbance
% f = 5 MHz;
% a is the magnitude of oscillatory disturbance component
% p is the starting time of osillatory disturbance component in normal
% voltage
% d is the decay factor of oscillatory component
f = 5000000;
a = 1.0;
p = 0.03;
d = 55e4;
t=0:0.1e-6:0.1;
ff=50; %frequency of normal voltage
x=sin(2*pi*ff*t)+ a*(u(t-p).*(exp(-d.*(t-p)))).*sin(2*pi*f*(t));
%exponentially decaying sinusoidal...
%...transient element added to normal voltage
plot(t,x)
function y=u(t)
% unit step function needed to decide the starting time of disturbance
y=t>=0;
end
end
私はこの出力を期待しています:
しかし、結果のプロットは私が望んでいたものではなく、妨害の開始時間まで空白です:
減衰係数または振動成分の周波数を上げても、結果が改善されません。
誰かが私に言った、それはオーバーサンプリングによるものです。しかし、私は助けを得ませんでした
- マイクロ秒の範囲、つまり持続時間 0.1 秒の正弦波のグラフをプロットする方法
- 50Hzの周波数で
- そして、0.03秒から始まる妨害
- そして、妨害自体の持続時間はわずかマイクロ秒です。