How do I plot this simple function in matlab
이전 댓글 표시
I have a function f(x) = +i x>0;
= 1 x=0;
= -i x<0 ;
I am confused because of the existence of the complex number. Suppose I want to take the fourier transform of this function. I do y=fft(f(x)); plot(x,real(y)); Is this right?
채택된 답변
추가 답변 (1개)
Azzi Abdelmalek
2012년 11월 2일
편집: Azzi Abdelmalek
2012년 11월 2일
x=rand(100,1) % eg
y=fft(x)
plot(abs(y))
why real(y)?
카테고리
도움말 센터 및 File Exchange에서 Fourier Analysis and Filtering에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!