Get harmoniques of a real signal

버전 1.5.0.0 (2.1 KB) 작성자: Azzi Abdelmalek
Given the signal x(t), the function find a0, ak, bk the amplitudes of cos and sin waves.
다운로드 수: 1.7K
업데이트 날짜: 2013/2/19

라이선스 보기

% wc,w0,a0,ak,bk,c0,ck]=get_harmonics(y,pas)
% given a signal x(t),y=x(t)
% the function get_harmoniques returns the pulse w0(rd/s) of the signal y(t)
% the coefficients ak (a1,a2,...) and bk (b1,b2,...) of the trigonomical
% representation of the signal y(t):
% y(t)= a0/2+ a1.cos(w0t)+b1.sin(w0t)+a2.cos(2w0t) +b2*sin(t*w0)+...
% it also returns the coefficients c0 and ck of the complex representation
% y(t)= ...+c(-1).exp(-jw0t)+c(0)+c(1).exp(jw0t)+c(2).exp(2jw0t)+...
% wc is the interval pulse;
% to plot the amplitude spectrum: stem(wc,abs(ck))
%[wc,w0,a0,ak,bk,c0,ck]=get_harmoniques(y,pas)
% be a signal x(t).
% For more theorical details look at www.azzimalik.com

인용 양식

Azzi Abdelmalek (2024). Get harmoniques of a real signal (https://www.mathworks.com/matlabcentral/fileexchange/37654-get-harmoniques-of-a-real-signal), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2011b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Fourier Analysis and Filtering에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
버전 게시됨 릴리스 정보
1.5.0.0

Because my code which calculate the DFT is too slow, I've changed it by the built-in function fft.

1.4.0.0

when choice=2 and Y (fft of our signal) is a column, the program must change it to a line.

1.3.0.0

add a demos, and fixed coeff a0 and added a pulse interval

1.0.0.0