셈툴 다운로드

셈툴 튜토리얼

공학수학 | Fourier 스펙트럼 1 |

페이지 정보

작성자 cemtool 작성일14-06-16 16:35 조회8,981회 댓글0건

본문

다음과 같이 진폭이 A이고 주기가 T인 함수를 생각해보자.
이 함수에 대한 전력 스펙트럼(power spectrum)을 구하여라.
ex8_6.cem
function;
virtual <> f,F,xunit
 
/*
 clptdscf(f,F,xunit) Plot a discrete spectrum [f F] Input to function is        f       - frequencies
        F       - spectral values
        xunit   - units of frequency (Hz or rad/sec) Input title of graph from keyboard*/
 
nl=length(f);                // Number of f points
fmin=min(f);                 //  and range
fmax=max(f);
Fmax=max(F);
 
for(I=1;I<=nl;I++){    fplots=[f(I) f(I)];
    Fplot=[0 F(I)];
    plot(fplots,Fplot)         // Plot one line at a time
    holdon
}title("Frequency Spectrum")xtitle(["Frequency in ", xunit])ytitle("Amplitude")
ex8_6.cem
/*
 Example 8.6 CEMTool Fourier spectrum
*/
 
// Plot positive frequency spectrum of square wave
// The components are 2/(n pi); n odd.
// Plot 10 components of the discrete spectrum [f F]// by calling function clptdscf
 
xunit="Hertz";          // Units of frequency
f=[0:10:1];             // Frequency scale
Fn=zeros(1,11);             // Row vector of 11 elements
// Frequency spectrum
for(n=1;n<=5;n++){              // Compute 5 positive components
    Fn(2*n-1)=2/((2*n-1)*pi);
}Fn=[0 Fn];                      // Add the zero value
 
clptdscf(f,Fn,xunit);    // Call for plot
 
 
 
 
이 함수의 복소 Fourier 계수는 다음과 같다.
이로부터, 함수 f (t)를 다음과 같이 급수의 형태로 나타낼 수 있다.
복소 Fourier 계수의 식을 정리하면,
가 된다. 따라서, 계수의 진폭은 이고, 계수의 위상은 음의 주파수일 경우에는 90° , 양의 주파수일 경우에는 -90°가 된다.

 
댓글목록

등록된 댓글이 없습니다.