# Signal processing in matlab, what is signal length ?

## Homework Statement

Use Matlab to construct a signal of length 2^13 = 8192 that contains only three frequencies:

x=0.5*sin(2*pi*200*t)+0.2*sin(2*pi*455*t)-0.3*sin(2*pi*672*t)

Compute and plot the absolute value of the DFT.

What does the question mean by signal length and why is it expressed in powers of 2 ? x is clearly my signal but how do i define its length ?

Thanks

## Answers and Replies

NascentOxygen
Staff Emeritus
Science Advisor
I would think it couldn't mean anything other than the number of samples in the period of that complex waveform. Does that make sense?

I don't know (i.e. remember) Matlab.

thanks, anyone have any idea how i give my signal this length ?

Last edited: