资源简介
本程序是基于MATLAB软件下的电压暂降时,如何求其均方根值曲线的程序
代码片段和文件信息
clc;
clear;
fs = 2000; %采样频率
f=0:0.1:200;
t = 0:1/fs:0.5; %时间
t1=0.2; %电压暂降开始时间
t2=0.4; %电压暂降结束时间
a=0.6; %电压暂降幅值
win=0.02; %更新周期
ya = (1-a*(t>t1 & t yb = (1-a*(t>t1 & t yc = (1-a*(t>t1 & t
winLen = win*fs;
yaPlus = [ya zeros(1winLen-mod(size(ya2)winLen))];
yaRe = reshape(yaPluswinLen[]);
yaRms = rms(yaRe);
ybPlus = [yb zeros(1winLen-mod(size(yb
评论
共有 条评论