Matlab for Signal Processing: Understanding 0:79 in Freq=(0:79)/(2*n*dt)

In summary, the conversation discusses a person's attempt to reduce noise in a signal using Matlab and their confusion about the meaning of freq=(0:79)/(2*n*dt). They found a helpful pdf online and received clarification that (0:79) refers to a string of numbers from 0 to 79 and freq is defined as these numbers divided by a denominator. The person also asks why 80 samples were chosen and is informed that it is for convenience and to zoom in on a specific region. The conversation ends with a request for the lecturer's notes.
  • #1
babistopher
15
0
Hi,

I am pretty new to Matlab and am trying to reduce the noise of a particular signal. I found this pdf online and found it to be helpful. However, I am having trouble figuring out what the freq=(0:79)/(2*n*dt) means. More specifically the 0:79 bit. Any help would be much appreciated.

Referring to: http://www.math.uic.edu/~jan/mcs320s07/matlec7.pdf
 
Physics news on Phys.org
  • #2
(0:79) defines a string of the numbers from 0 to 79. The line defines "freq" as these numbers divided by the denominator.
 
  • #3
Thanks for the reply. I apologize that my question wasn't clear. I meant why are they choosing 80 samples?
 
  • #4
I think it's just a choice of convenience. If you plotted all 401 points in the spectrum, the peaks at bins 2 and 4 would be indistinguishable from the y axis. He's just zooming in on the region of interest.
 
  • #5
that's exactly what i figured. thank you.
 
  • #6
Hi, jus came across this thresd, noticed your MATLAB lecture notes seems very handy. I'm wondering if I would be able to get my hands on the set of notes your using. Wil be much apreciated if so. Thanks.
 

1. What is Matlab for Signal Processing?

Matlab for Signal Processing is a software program used for analyzing and processing signals. It is commonly used in various fields such as engineering, physics, and mathematics.

2. What is the meaning of "0:79" in Freq=(0:79)/(2*n*dt)?

The "0:79" in the equation refers to the range of values from 0 to 79. This range is typically used to represent frequency values in signal processing.

3. What does "Freq=(0:79)/(2*n*dt)" represent?

This equation represents the frequency domain in signal processing. The variable "Freq" refers to frequency, "n" represents the number of samples, and "dt" is the time interval between samples.

4. Why is it important to understand "0:79" in Freq=(0:79)/(2*n*dt)?

Understanding the range of values, or "0:79," is important because it helps determine the frequency resolution in signal processing. It also allows for accurate interpretation and analysis of signals.

5. How can I use Matlab for Signal Processing in my research?

Matlab for Signal Processing can be used in various research studies that involve analyzing and processing signals. It can be helpful in fields such as medical imaging, speech recognition, and telecommunications. It is also a useful tool for simulating and modeling systems that involve signals.

Similar threads

  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
737
  • MATLAB, Maple, Mathematica, LaTeX
Replies
4
Views
1K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
1K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
2
Views
2K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
10
Views
2K
  • Calculus and Beyond Homework Help
Replies
2
Views
1K
  • General Engineering
Replies
3
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
2
Views
2K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
3
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
6
Views
3K
Back
Top