Signal processing in matlab, what is signal length ?

Click For Summary
SUMMARY

The discussion centers on constructing a signal in MATLAB with a specified length of 8192 samples, derived from three distinct frequencies: 200 Hz, 455 Hz, and 672 Hz. The signal is defined as x=0.5*sin(2*pi*200*t)+0.2*sin(2*pi*455*t)-0.3*sin(2*pi*672*t). The question of signal length refers to the total number of samples in the signal, which is expressed in powers of 2 for computational efficiency in digital signal processing. Participants seek clarification on how to implement this in MATLAB, particularly regarding defining the signal's length.

PREREQUISITES
  • Understanding of MATLAB programming
  • Knowledge of digital signal processing concepts
  • Familiarity with the Discrete Fourier Transform (DFT)
  • Basic principles of sinusoidal functions and their representation
NEXT STEPS
  • Learn how to implement the MATLAB function for generating signals using the 'sin' function
  • Research the MATLAB command for computing the Discrete Fourier Transform (DFT)
  • Explore the significance of using powers of 2 in signal processing
  • Study techniques for plotting signals and their frequency components in MATLAB
USEFUL FOR

This discussion is beneficial for students and professionals in signal processing, MATLAB users, and anyone interested in understanding the construction and analysis of digital signals.

bert2002
Messages
16
Reaction score
0

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
 
Physics news on Phys.org
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:

Similar threads

  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 10 ·
Replies
10
Views
4K
  • · Replies 8 ·
Replies
8
Views
3K
Replies
19
Views
2K
  • · Replies 6 ·
Replies
6
Views
5K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 15 ·
Replies
15
Views
4K