From: anjori dutta on 27 Feb 2010 07:51 i am quite new to MATLAB, cud u pls help me with the following problem... Given, x(t) = 1, - τ/2 ≤ t ≤ τ/2 = 0, otherwise where τ=10. Find the Fourier transform |X(w)| and plot it. If u do this mathematically, the answer should be |X(w)| =τ *sinc(wτ/2).....so the plot should be a sinc function Thanx in advance!!!!!!!!!!
From: nanren888 on 28 Feb 2010 01:23 "anjori dutta" <anjori05chiru(a)gmail.com> wrote in message <hmb4fm$s8r$1(a)fred.mathworks.com>... > i am quite new to MATLAB, > cud u pls help me with the following problem... > > Given, x(t) = 1, - τ/2 ≤ t ≤ τ/2 > > = 0, otherwise > where τ=10. > Find the Fourier transform |X(w)| and plot it. > > If u do this mathematically, > > the answer should be |X(w)| =τ *sinc(wτ/2).....so the plot should be a sinc function > > Thanx in advance!!!!!!!!!! Have a read of the primer. Have a go at your problem. Maybe post again when you've had a go, if you get stuck. Maybe look up fft. Might also want fftshift for display. You might find "find" useful, but "conditional addressing" might be neater if you can find an example. There's a sinc function if you want to compare. Maybe one of the most difficult syntax elements to find in the help is ":". It's really good for creating ranges of things, like time axes. You might find "linspace" useful as well for creating sets of value to work as axes, domain &c. plot is pretty self-explanatory for starters, eg plot(something) or plot(x,y)
|
Pages: 1 Prev: Tips on simulating on a "measured" power amplifier Next: Matlab/C# |