Sign in

username:

password:



Not a member?

Search matlab



Search tips

Subscribe to matlab



matlab by Keywords

Atanh | Autocorrelation | Bandpass Filter | C++ | Conv | Database | Deconv | Excel | FFT | Filter | Filtering | FIR | Fourier Transfrom | FSK | Gaussian Noise | Haykin | IFFT | Image | Java | LFSR | LMS | LPC | MEX | OFDM | QPSK | Radix | Random | Sampling | Segmentation | Simulink | Visual Basic | Waveform | Wavelet


Discussion Groups

Discussion Groups | Matlab DSP | fourier transform

Technical discussion about Matlab and issues related to Digital Signal Processing.

  

Post a new Thread

fourier transform - shareena_b - Apr 13 11:19:31 2008



hi all,

i have one function, x = (e^-2t) cos (4t) u(t) and i 
suppose to compute this fourier transform for the 
continuous signal and plot the frequency spectrum. these 
are the step that i figure out that can verified my answer that i 
calculated myself (correct me if im wrong)

1- plot the signal
2- use fft command
3- use fftshift command
4- use stem command

but, in the first step, i did this..

>> fo = 2/pi; %the frequency
>> Fs = 100; %the sampling rate
>> Ts = 1/Fs; %sampling time interval
>> t = 0 : Ts : 1-Ts; %sampling period
>> n = length (t); %number of samples
>> y = (exp(-2*t))*cos(4*t);
??? Error using ==> mtimes
Inner matrix dimensions must agree.

>> 

i also tried this..

>> y = 3D(exp(-2*t)).*cos(4*t);
??? y = 3D(exp(-2*t)).*cos(4*t);
        |
Error: Unexpected MATLAB operator.

and obviously the figure didnt come out. i tried other 
command also but there are still errors. 

how can i fix this? or are there any specific resources 
that i can refer to? i already search at mathworks.com and this forum 
and also some other signal and system books.

thank you.



(You need to be a member of matlab -- send a blank email to matlab-subscribe@yahoogroups.com )