周期函数的积分和微分:使用FFT的周期函数的积分和微分-matlab开发

时间:2021-06-01 02:00:15
【文件属性】:
文件名称:周期函数的积分和微分:使用FFT的周期函数的积分和微分-matlab开发
文件大小:2KB
文件格式:ZIP
更新时间:2021-06-01 02:00:15
matlab % 假设 f(t) 是区间 [0,2pi] 上的实数 2pi 周期函数%和1 * n向量x是n处函数f(t)的值% 等距点(n 必须是偶数) % t_j=(j-1)*2*pi/n, j=1,2,...,n。 % 功能% y = derfft (x) % 使用 fft 找到三角插值多项式% 在 n 个点 t_1,t_2,...,t_n 处对函数 f(t) 进行插值。 那么% function derfft 计算周期导数函数的值在上述点t_j处的%f'(t)。 % % 例子% n = 2^7; % t = [0:2*pi/n:2*pi-2*pi/n].'; % x = sin(t).*exp(-cos(t)); % xpe = cos(t).*exp(-cos(t))+sin(t).^2.*exp(-cos(t)); % xp = derfft (x); %错误=规范(xp-xpe,inf)
【文件预览】:
Integration_and_differentiation_of_periodic_functions.zip

网友评论