Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Fourier Transform in Matlab

  1. Oct 12, 2011 #1
    1. The problem statement, all variables and given/known data

    I need to find the Fourier Transform of g(t) using matlab,

    [tex]g(t) = tri(\frac{t}{2\pi })Cos(2\pi (\frac{5}{\pi })t)[/tex]

    2. Relevant equations

    How can this be done accurately since you need 't' to be from -infinity to +infinity?

    And how can you input a tri function in matlab?

    3. The attempt at a solution

    I tried using y=trimf(t,[3 6 8]); but when I multiply the trimf function and the cos function it says the matrices must have the same dimensions.

    Thanks for your help.
  2. jcsd
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook

Can you offer guidance or do you also need help?