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:
Kindly see the attached pdf. My attempt to solve it, is in it. I'm wondering if my solution is right. My idea is this: At any point of time, the ball may be assumed to be at an incline which is at an angle of θ(kindly see both the pics in the pdf file). The value of θ will continuously change and so will the value of friction. I'm not able to figure out, why my solution is wrong, if it is wrong .
TL;DR Summary: I came across this question from a Sri Lankan A-level textbook. Question - An ice cube with a length of 10 cm is immersed in water at 0 °C. An observer observes the ice cube from the water, and it seems to be 7.75 cm long. If the refractive index of water is 4/3, find the height of the ice cube immersed in the water. I could not understand how the apparent height of the ice cube in the water depends on the height of the ice cube immersed in the water. Does anyone have an...

Similar threads

Replies
10
Views
3K
Replies
8
Views
2K
Replies
6
Views
5K
Replies
1
Views
2K
Replies
1
Views
1K
Replies
15
Views
4K
Back
Top