Signal processing in matlab, what is signal length ?

AI Thread Summary
The discussion centers on constructing a signal in MATLAB with a specified length of 8192 samples, derived from three frequencies. The term "signal length" refers to the number of discrete samples used to represent the signal, which is often expressed in powers of 2 for computational efficiency in digital signal processing. Participants seek clarification on how to define and implement this length in their MATLAB code. The question also highlights a need for guidance on using MATLAB to create the signal and compute its Discrete Fourier Transform (DFT). Understanding these concepts is essential for successfully completing the homework assignment.
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:
Thread 'Voltmeter readings for this circuit with switches'
TL;DR Summary: I would like to know the voltmeter readings on the two resistors separately in the picture in the following cases , When one of the keys is closed When both of them are opened (Knowing that the battery has negligible internal resistance) My thoughts for the first case , one of them must be 12 volt while the other is 0 The second case we'll I think both voltmeter readings should be 12 volt since they are both parallel to the battery and they involve the key within what the...
Thread 'Correct statement about a reservoir with an outlet pipe'
The answer to this question is statements (ii) and (iv) are correct. (i) This is FALSE because the speed of water in the tap is greater than speed at the water surface (ii) I don't even understand this statement. What does the "seal" part have to do with water flowing out? Won't the water still flow out through the tap until the tank is empty whether the reservoir is sealed or not? (iii) In my opinion, this statement would be correct. Increasing the gravitational potential energy of the...
Back
Top