Skip to main content

Questions tagged [signal-processing]

Digital signal processing of sound, video or other single or multidimensional data

Filter by
Sorted by
Tagged with
46 votes
4 answers
7k views

Implementing continuous phase/Arg function

In MATLAB there's a function called phase that is just like our Listable friend Arg, but ...
Rojo's user avatar
  • 42.8k
41 votes
3 answers
22k views

What's the correct way to shift zero frequency to the center of a Fourier Transform?

I'm trying to apply a Fourier transform of a one dimensional list of a time history of some quantity using the Fourier function. I'm interested in the frequency ...
xslittlegrass's user avatar
40 votes
3 answers
11k views

Remove noise from data

Hi, as you can see above I have some experimental data which has a large offset and shows clear noise fluctations around the tendency of the curve. I wanted to ask if someone could suggest me a method ...
Filipe's user avatar
  • 543
32 votes
4 answers
13k views

Implementing discrete and continuous Hilbert transforms

What is an efficient and accurate Mathematica implementation of the Hilbert transform, for both continuous and especially discretely sampled functions? This transform relates phase and amplitude in ...
Mr.Wizard's user avatar
  • 273k
31 votes
3 answers
11k views

How do you remove noise to detect just the human voice?

How do you detect different sound frequencies and cut off parts in an audio file? Among instruments, how do you pick up the human voice?
user4795's user avatar
  • 437
30 votes
4 answers
2k views

Filtering beat-to-beat heart rate data

From an experiment, I have a dataset of beat-to-beat heart rate data: a list of the time between each heart beat in [ms]. The data is measured using an infrared optic sensor at the finger tip. The ...
Aart Goossens's user avatar
27 votes
4 answers
9k views

Computing and plotting a spectrogram in Mathematica

How can I compute and plot the spectrogram of a signal/time series/data in Mathematica? I have a WAV file, sampled at 44100 samples/second and I want to generate a spectrogram of that data. Something ...
Eiyrioü von Kauyf's user avatar
27 votes
4 answers
7k views

Savitzky-Golay Filter to smooth noisy data

I do have noisy data and want to smooth them by a Savitzky-Golay filter because I want to keep the magnitude of the signal. a) Is there a ready-to-use Filter available for that? b) what are ...
Shukoff's user avatar
  • 599
27 votes
4 answers
1k views

How fast is my fidget spinner spinning? A sound experiment!

I would like to measure how fast my 6-bladed fidget spinner spins. To do so, after giving it a hard spin, I gently touch the spinner with a wooden stirring stick to create a buzzing sound which ...
Miladiouss's user avatar
  • 1,883
26 votes
7 answers
1k views

Graphical representation of a moving sound source

Some explanation since I have got a specific and another more open-ended question: I used two microphones in a 90° arrangement (see picture below) to capture sound from a source moving around the room ...
Sascha's user avatar
  • 8,529
25 votes
5 answers
13k views

Numerical Fourier transform of a complicated function

Say I have a function $f(x)$ that is given explicitly in its functional form, and I want to find its Fourier transform[1]. If $f$ is too complicated to have an analytic expression for $\hat f(k)$, how ...
yohbs's user avatar
  • 7,075
24 votes
2 answers
1k views

Can we use Mathematica to design an electronic active filter?

How can we use Mathematica to design an electronic implementation of an active filter?
David Keith's user avatar
  • 4,724
23 votes
4 answers
22k views

Plotting Fourier spectrum versus frequency of a signal

I have looked around here, and i am sure this has been answered, but i don't understand it. The thing is, I have taken a introductory signal processing course, and we had to use Mathematica, and i had ...
mickey's user avatar
  • 385
23 votes
5 answers
16k views

How to find the phase difference of two sampled sine waves?

I'm trying to measure a phase difference between two Sine functions I've acquired with a computer. I'm uploading one of the .txt files with the data I'm working with here: txt file. To remove the ...
Juan's user avatar
  • 327
23 votes
6 answers
32k views

How do you find the frequency and amplitude from Fourier?

Edit This is a popular question with several answers. This edit organises the answers and gives links. Fourier just gives y values (ordinates) if you wish to read off frequencies and amplitudes you ...
Hugh's user avatar
  • 16.8k
23 votes
3 answers
8k views

Can one find the beat of a tune with Fourier analysis?

I'm trying to find out if it's possible to find the beat of a tune by Fourier analysis with Mathematica. I'm taking a 44.1 kHz sample sound and hoping that I might get a nice peak for a frequency ...
F'x's user avatar
  • 10.9k
21 votes
1 answer
5k views

Extracting information from the result of ContinuousWaveletTransform

I'm trying to analysis a signal and identify some time-frequency information of it. For example, around which time the specific frequency arrives. It appears that Mathematica has very powerful wavelet ...
xslittlegrass's user avatar
20 votes
1 answer
5k views

How to demodulate an FM signal in continuous-time?

I'm not sure if this is a math or Mathematica question, but I'm posting it here because I'm interested in possible Mathematica tools/functions to solve the problem. I'm stuck. I want to simulate ...
stevenvh's user avatar
  • 7,018
19 votes
2 answers
2k views

Why the BandpassFilter is different than applying LowpassFilter then HighpassFilter

If I generate some data with noise, and use a filter to filter the noise, why does BandpassFilter not produce the same results as using ...
m00nlight's user avatar
  • 1,582
19 votes
0 answers
439 views

Strategies to find curves on messy data using FindCurvePath

I have a set of data points that correspond to roots of a transcendental equation with respect to a parameter (the abscissa) which, by the properties of the system, define continuous curves (might be ...
Pragabhava's user avatar
  • 1,619
18 votes
3 answers
2k views

What is Mathematica's equivalent to MATLAB's filter function?

The MATLAB code filter(0.5,[1, -0.5], [1:10]) is equivalent to Rest@FoldList[(#1 + #2)/2. &, 0, Range[10]] I don't ...
chyanog's user avatar
  • 15.8k
18 votes
4 answers
3k views

Cross-Correlation with TimeSeries

How to find hidden relationship between two TimeSeries data sets? I normally compute the Cross-Correlation function, but I cannot find an easy way of doing this on the TimeSeries objects in ...
Karolis's user avatar
  • 1,639
18 votes
2 answers
1k views

Processing images from NASA's Juno Jupiter Orbiter

Question Can you help me improve what I’ve done to create an enhanced-color picture from an image provided by NASA’s JunoCam? [My work is shown in the penultimate image of Jupiter in this post.] I’...
theorist's user avatar
  • 3,643
16 votes
2 answers
658 views

Cluster a signal into areas of equal intensity

Introduction I have a greyscale photograph that I want to partition into areas of equal intensity. This means, that the integral over each partition should be (roughly) equal. There is no unique ...
kejace's user avatar
  • 341
15 votes
3 answers
885 views

Deleting noisy data from a plot (manually) and export the best remaining data

I have the following temperature time-series. As you can see it contains very very noisy points in some periods (Fig.A). I tried to approach the best data(the black one in the center) based on the ...
Mehmet's user avatar
  • 587
15 votes
1 answer
2k views

How can I use Mathematica to numerically compute a Wigner spectrogram of an optical pulse?

This question was inspired by this question where it is necessary to numerically compute the Fourier transform of a Gaussian optical pulse with a Gaussian chirp function. $$E(t)=e^{-t^2} \cos(50 t - ...
Jason B.'s user avatar
  • 70.2k
14 votes
1 answer
1k views

Extracting signal from gaussian noise

I am trying to extract a signal, $X$, from a noisy source of data, $Z$: $Z = X + Y$ where I know that $Y\sim N(0,\sigma)$, and I know the standard deviation $\sigma$. I am starting with a surrogate ...
ben18785's user avatar
  • 3,167
13 votes
1 answer
834 views

Removing outliers from data

I am trying to remove outliers from the following data: ...
TDH's user avatar
  • 489
13 votes
1 answer
5k views

Hilbert-Huang transform package

I am trying to learn Hilbert-Huang transform (HHT) and its applications (especially in ECG signal processing). There are several HHT packages (scripts) HHT for R and Matlab. Is there any known ...
Methdotnet's user avatar
13 votes
1 answer
786 views

Wavelet transform order problem

I have a signal that I'm trying to study its time-frequency features by continuous wavelet transform. By choosing different wavelet order, I get some differences in the results. ...
xslittlegrass's user avatar
13 votes
4 answers
1k views

Segmentation of a microscopy image with uneven illumination

I am trying to do a little image segmentation on some cells taken from microscopy images that have uneven illumination. I am having trouble getting the background of the image cleaned up after ...
user13999's user avatar
  • 907
11 votes
2 answers
2k views

Correct Fourier scaling and high-resolution frequency identification

I have a dataset of amplitude versus time $(t,A(t))$ and I need to extract the dominant frequency and amplitude, and also get the amplitude at one other specific frequency. My data looks like this: <...
rhermans's user avatar
  • 37.4k
10 votes
2 answers
814 views

Frequency of ticks in mechanical watches

I'm looking to find the frequency of a relatively large dataset (or a relatively short audio file) of a repeating sound, like so: Here are the original files, for those willing to play. :) eta2412 ...
DrMrstheMonarch's user avatar
10 votes
2 answers
1k views

Building Butterworth Bandpass Filters

In order to bandpass filter data it is necessary to use ButterworthFilterModel, followed by ToDiscreteTimeModel and RecurrenceFilter. I have two questions: I wish to specify the order of the ...
Hugh's user avatar
  • 16.8k
9 votes
3 answers
2k views

high pass filter without losing detail

I have troubles doing a simple high pass filtering... Downloading the test data, you can see that overimposed on the signal there are some low frequencies and an almost constant slope, that I'd like ...
alessandro's user avatar
  • 1,085
9 votes
1 answer
2k views

Finding outliers in 2D and 3D numerical data

I'm working on dataset which isn't normally distributed.which contains three dimensions like cost, discount and profit I'm trying to find outliers in all these dimensions. I used z score to find ...
tourist's user avatar
  • 193
9 votes
1 answer
1k views

How can I generate pink noise using Mathematica?

I need a time series of pink noise. How can I generate pink noise using Mathematica?
Julian's user avatar
  • 91
9 votes
2 answers
952 views

How can I generate a sin wave with power law noise?

I am interested in simulating a signal with different types of power law noise, as entitled in Wikipedia, "Color of Noise". (The audio examples are pretty cool). Basically, white noise, ...
Astor Florida's user avatar
9 votes
1 answer
289 views

How to reproduce Spectrogram from SpectrogramArray?

I'm trying to reproduce the result of Spectrogram from SpectrogramArray, but having no luck, any help? What I've got so far: <...
Incömplete's user avatar
8 votes
3 answers
2k views

Signal processing by means of WaveletTransform

I updated my question to explain what I want. I have the voltage-time curve from the real industial object. This curve was gotten from the digital oscilloscope: As you can see it has hight-frequency ...
Ivan's user avatar
  • 83
8 votes
1 answer
361 views

Sample rate severely influences quality of ButterworthFilterModel?

I've hesitated for a while about whether this should be posted to dsp.SE or not, but still decide to discuss it here. Today I was playing with ...
xzczd's user avatar
  • 68.4k
8 votes
1 answer
3k views

How to extract notes and chords from audio?

I have a 3-second recording of a guitar chord which you can safely download here. I'm trying to use Mathematica's wavelet features to find out the notes in the chord, at least the docs says that ...
M.R.'s user avatar
  • 31.8k
8 votes
1 answer
1k views

How does Mathematica's LowpassFilter work?

I don't really understand the documentation for the LowpassFilter[] function in Mathematica. In the course I have about signal processing, low-pass filters come in ...
L1meta's user avatar
  • 215
8 votes
1 answer
1k views

How to make sense of LowpassFilter, SampleRate and the cutoff frequency ωc in different Mathematica versions?

How do you make sense of the scale of "time" and "sampling" when using LowpassFilter and SampleRate ? Given the test data with ...
rhermans's user avatar
  • 37.4k
8 votes
2 answers
404 views

How to detect discolorations in an image?

I'm evaluating the technical quality of an images and I'd like to scan it for defects from dirty sensors. Are there any filters to quickly detect a blob of discoloration? Here are a few examples:
M.R.'s user avatar
  • 31.8k
7 votes
2 answers
2k views

How to get a smooth derivative graphic

You can get data by this code: data = Normal[Databin["fHVr7FSi"]] Visualize it like following We can find some non derivable ...
yode's user avatar
  • 27.2k
7 votes
1 answer
548 views

Working example for the built-in SavitzkyGolayMatrix for doing polynominal smoothing

Have been using various packages SavitskyGolay.m for Savitsky-Golay polynomial smoothing but just noticed the built-in matrix kernel. I am looking for an example ...
John Morganthau's user avatar
7 votes
5 answers
1k views

Why isn't LowPassFilter working for these parameters?

First I define a function, just a sum of a few sin waves at different angular frequencies: ...
YungHummmma's user avatar
  • 3,102
7 votes
1 answer
2k views

Data filtering using Butterworth filter

I want to filter data using Butterworth filter. I am currently using Matlab and I want to know how to do it in Mathematica. I have the following data: ...
Basheer Algohi's user avatar
7 votes
2 answers
395 views

Resources for Sound Synthesis & Design

Are there any resources for sound synthesis using Mathematica? This page, Mathematica: Audio Synthesis Software, refers to other software packages, e.g. Max/MSP and Csound, for real-time synthesis. ...
Chris Degnen's user avatar
  • 31.3k

1
2 3 4 5 6