# Fourier transform of a signal

I have problem of finding right answer for my problem.

Here is my equation:

$$E(t)=\sum_{n=1}^{\infty} c_n \sin\left(\frac{n \pi}{T}t\right)$$

What have I done: I have a notebook asking for 3 Energy values, T value and 3 other values for time to plot graph as energy (y-axis) and time (x-axis); this I have done by piecewise command.

Then I have loop for determining the n values and values of (n pi)/T to determine my angular frequency (or at least I think it is) in unit of rad/s but I have been told that the unit is wrong. From these two values I've been plotting with DiscretePlot my two values and thought I had right Intensity spectrum where x-axis is in rad/s but no. In which unit the x axis is?

-
posting code that you've actually tried will get you a better answer faster. –  Jagra May 23 at 13:11