# Fourier Transform in Matlab

1. Oct 12, 2011

### frenzal_dude

1. The problem statement, all variables and given/known data

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

$$g(t) = tri(\frac{t}{2\pi })Cos(2\pi (\frac{5}{\pi })t)$$

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.