⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 clfftf.m

📁 Advanced Engineering Mathematics using MATLAB by Harman, Dabney, Richert,书中全部源码
💻 M
字号:
function [FT,FTmag,FTang] = clfftf(ft,N,Ts)% CALL: [FT,FTmag,FTang] = clfftf(ft,N,Ts) Compute the DFT %  approximation of the Fourier Transform  % Inputs:% ft	Sampled function of time f(nTs)	% N	Number of sample points% Ts	Sample interval in seconds% Outputs:% FT	Approximate Fourier transform using DFT% FTmag	Magnitude of spectrum% FTang	Phase in degrees% Determine the two-sided spectrumFT1=Ts*(fft(ft,N));            % Scale to approximate FTFT=fftshift(FT1);              % Shift 0 to center	%% Compute the magnitude and phase for the frequency values %    in hertz fs=1/(N*Ts); fmax=1/(2*Ts)% FTmag=abs(FT);                 % MagnitudeFTang=(180/pi)*angle(FT);      % Phase in degrees

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -