syms ff=[0 0 4 9];y = fft(f)Fs = 16;t= [0:1/Fs:1.5];x=exp(-2*t);plot(t,x);grid;xlabel('time');ylabel('Freq');title('Part 2a');y=fft(x);m=abs(y);plot(t,m);grid;xlabel('time');ylabel('abs');ylabel('abs');p=((2*pi)/(50*0.1));w= [0.5:p:(2*pi/0.4)]; x= 1./(2+(j*w));plot (w,x); xlabel('time');ylabel('fourier transform');title('The Fourier transform');f= exp(-2*t);t= 0:0.1:1.5;x= fft(f); z= abs(x); u= z*0.1 ;plot(t,z);title('plot function');xlabel('Time');ylabel('abs') ;hold on
MATLAB: How to make the vectors the same lenght to plot ? plot (t,z)
fft
Related Question
- How i find period and frequency of signal
- Hi I’m trying to execute the below code to observe the impact of noise on the FFT of the signal. Even if i’m increasing noise content there is little impact on the signal’s Spectrum. Why
- Sloution for the question
- How can I transform this code into a for loop
- Am I getting this error, “Subscript indices must either be real positive integers or logicals.”
Best Answer