instruction stringlengths 31 27k |
|---|
I'm trying to modulate in FM an audio signal $x(t)$ coming from a microphone which works from 50 Hz to 16 kHz in MATLAB.
But the problem is that I want a FM Bandwidth of 25 kHz at the output of modulator.
I have some problems to do this:
The FM bandwidth for any signal using Carson's rule is:
$$BT = \left(\frac{f_d \ma... |
I have been reading this old paper by Steven Jacques, a titan in the world of using Monte-Carlo methods for photon propagation and distributions.
https://www.osapublishing.org/ao/abstract.cfm?uri=ao-28-20-4286
For the moment, I have a pretty solid grasp how to continue with my research. However, there is one element th... |
The formant spectrogram in this page points F1 and F2 as below;
In bottom-right F1 movement, I thought F1 could be below blue one. But how can we determine F1 is upper one not below one?
Is it because we know F1 and F2 have to be getting closer from [ε] to [ae]? Or, can we determine F1 only with spectrogram?
|
Now I'm trying to understand and implement the zero-padding work in my example.
As I know, meaningless zero values are affect to better DFT result. So I want to see how zero-padding works.
clear all
clc
fs = 50; %50Hz
T = 1/fs;
N = 8;
t = (0:N-1)*T;
y = 5+cos(2*pi*12.5*t)+sin(2*pi*18.75*t);
X=zeros(1,N);
for k = 0:... |
If I have a signal measured in discrete time intervals of a process containing some signal and some Gaussian noise how do I go about measuring the variance of this noise [i.e. the $\sigma^2$ term in $\mathcal{N}(0, \sigma^2)$].
For example if I generate some pure Gaussian noise and plot the time trace, the histogram of... |
I'm trying to understand STFT overlapping, why segments are concatenated and what are the consequences of this.
My implementation (from other questions and repositories found) of the STFT in Python is:
def stft(x, L, overlap, window): # Linear Spectrum (LS) [V]
opoints = int(L*overlap)
hopsize = L - opoints
X = np.arra... |
The double-density DWT is an improvement upon the critically sampled DWT with important additional properties: It employs one scaling function and two distinct wavelets, which are designed to be offset from one another by one half,
I wonder why double density DWT uses two HPF with offset 1/2 insteed of one HPF in DWT?
... |
I have a project to do about what happens to a periodic function when we pass it through a low-pass, high-pass and band-pass filter.
I have no expressions for the filters or the function, I just have to analyse graphics.
I already concluded that the low-pass filter passes the zones of the graphic that have a low vari... |
I'm trying to figure out how to design a Reed-Solomon generator polynomial where $n$ divides $q-1$ (I believe it's denoted by $n|q-1$) but where $n < q-1$. For example, lets say we have a $q=16$ and we want to design a codeword with length 3 and corrects 1 error. so we have the following:
$n = 3$
$l = \frac{q-1}{n} = \... |
The residual in estimation is the difference between the measurement and the previous estimate. My question is when I plot this quantity, what is ,if any, information I can extract or infer from this quantity? No beneficial information I can see from the figure. Any suggestions?
|
I'm trying to determine the moving direction of an object in x-axis only. Figure below shows part of my effort.
However, I got stuck. As you can see from the middle image, the green represent the dot moved to right (positive x), the black represent overlapped area and the purple represent the reference image relative ... |
The problem:
I work for foundries, in this sector the cast parts are manufactured pouring liquid metal in sand moulds. These moulds are formed by 2 sand semi-moulds (first figure), and these semi-moulds are manufactured in the DISA machine.
The problem is that sometimes the DISA machine does not work properly and the a... |
so I have an eeg signal (edf format) that has 25 channels and 248832 entries, sampling frequency of 512Hz. I have to compute the frequency bands:
– Delta: 0.1-4Hz
– Theta: 4-8Hz
– Alpha: 8-12Hz
– Sigma: 12-16Hz
– Beta: 16-36Hz
– Gamma: >36Hz
and plot them accordingly. I am using Python for this with scipy, numpy,... |
I'm very new to all of this.
Right now I'm just trying to add a bunch of different noises to an input signal and see how they affect my signal.
This is the current output of my code:
signal,Fs = audioread('~/Documents/Methlab/sp03-0.wav');
%generate white noise from input signal
[m,n] = size(signal);
snr = input(... |
In an audio recording (say a telephone conv. b/w two people), how would I programatically detect and remove the dial-tone at the beginning of a call using python.
Ex :
As you can see the first 15 seconds or so is just a dial tone like tring-tring-tring-tring.
Are there any audio analysis libraries in python that coul... |
So I have the following equation
$$
y[n]=0.9y[n-1]+0.1x[n]
$$
We can find easily find the transfer function, which is
$$
H(z)=\frac{0.1}{1-0.9z^{-1}}
$$
and from that, the frequency response, which is
$$
H(e^{j \omega})=\frac{0.1}{1-0.9 e^{-j \omega}}
$$
To find the cutoff frequency we just make the magnitude of the a... |
If one has two signals (say, two acceleromters mounted perpendicularly) and a piece-wise resultant acceleration signal is determined, it appears that frequency content information cannot be determined on the resultant signal using an FFT.
Can someone comment on why this is so?
It may be that the process of determin... |
I am working on a seismic signal to extract long period long duration earthquakes. The sampling frequency is $2004\ \rm{ Hz}$ and the the signal has $20755200\ \rm{samples}$. The spectogram seems to be very discrete and it is not smooth.
I need to work in windows in a range of $300\ \rm{sec}$, so when I zoom in, it i... |
I want to find the inverse $\mathcal Z$-transform of this, in discrete time:
$$X(z) = \frac{1}{1+3z^{-1}+2z^{-2}}$$
|
Are there any direct relation formula between BER and Transmitter gain. The higher the transmitter gain is, the better the BER performance is. In here, I want to plot graph for the BER based on different transmitter gains and compare the MATLAB simulation vs experimental results.
|
I have these two filters as given in recursive form:
\begin{align}
y_1[i] &= y[i] - y[i-d] + 1.2y_1[i-d] - 0.8y_1[i-2d]\\
y_2[i] &= y[i] - 2y[i-d] + y[i-2d]
\end{align}
where $d$ is an integer for setting the delay. I wanted to have a look and see how such filters change input signals depending on the value of $d$, but... |
The transform function of a digital FIR filter can be characterized by
$$
H(z) = \sum_{n=0}^{2N} h(n)z^{-n}\quad\text{where $2N$ is the order of the filter.}
$$
But when we use $2N$ or $N-1$ , $2N+1, \ldots$, on any basis chosen, is it related to linear phase or filter characters , or related to various configuration... |
I've come across the below. Can you please help me understand the proof for this?
$$\int_{-\infty}^{\infty}x(t)\delta'(t-2.5)dt=-\frac{dx(t)}{dt}{\Big |}_{t=2.5}$$
|
I have a very large array (about 500.000 in size). I've plotted the array in chunks and founded at the tail of the array there is a periodic behavior, so I want to know if there is a way to know if it is periodic an if so what is its period?
I don't have any idea about signal processing so I need to know if there is ... |
Considering an example, where the model is
\begin{align}
x[n] = \mathbf{h}^\mathsf{T}\mathbf{u}[n] + w[n].
\label{Eq1}
\end{align}
$\mathbf{h} = [h_0,h_1,\ldots,h_{M-1}]^\mathsf{T}$ of length $M$ which represents the coefficients of the LTI SISO channel and $\mathbf{u}[n] = [u[n], u[n-1], u[n-2],\ldots,u[n-M+1]$ is the... |
I am trying to apply some filtering in C/C++ code, I have designed an algorithm using Matlab and it works well, so now I am moving it to native code.
I am interested in the filter function.
In my matlab script it is used as follows.
[y_blk, fir1_state] = filter( h, 1, x.*c, fir1_state );
Where the h argument is coeff... |
My try:
First of all I tried observing the symmetry but I did'nt find any.So I tried to calculate the fourier series coefficient of the signal like this
First I differentiated the signal $x(t)$ so that $y(t)=\frac{dx(t)}{dt}$ Now suppose $d_k$ is the Fourier series coefficient of the differentiated signal and $a_... |
I want to compare two signals or curves.
Unfortunately they have different sample rates. The first one is sampled at 30 Hz, the second at 2000 Hz. Matlab has the function 'resample' and I thought, this would make comparison much easier.
My question is: Is it wiser to downsample the second curve or to upsample the... |
I have two sets of one second voltage data sampled with 4000Hz and I can plot all the voltage points vs time points in MATLAB. So it means I have a data matrix with with length of 4000 one column for the time in seconds the other for the voltage.
Now I have simultaneously sampled two data matrix in time domain with th... |
I am trying to playback samples on a retro-computer. The hardware is extremely limited, so I am forced to use software PWM as my main method of playback. The limitations of the platform mean that I cannot use a particularly high PWM frequency and the resulting sample resolution is unlikely to exceed 5 or 6 bits. Let us... |
Let's say we have a rational, causal, stable LTI system with transfer function
$$H(z) = \frac{A(z)}{B(z)}$$
If $H(z)$ has $N$ poles, we can in theory have only 1 of those poles, $p_i$, show up at the output. So $y[n]$ is $p_i^n$ after some $n>A$. To do this we need to come up with an input $x[n]$ that is causal and ha... |
My question is pertaining to how the parameters of a stereo camera system (focal length, base, height, pixel density) affects the accuracy as well as the resolution of depth measurement. I do not have a formal background in computer vision or photogrammetry, I have a civil engineering background.
From what I understan... |
Given a signal
$$y(n)=x(n)\cos(wn)$$
How to determine if the given signal is linear or non linear?
I am getting so confused reading the theory. If someone could help step by step to determine this. It would be great thankyou
|
Consider the following analog signal
$$x(t) = 2 \sin(100\pi t)$$
The signal $x(t)$ is sampled with a sampling rate $F_s=50\textrm{Hz}$. Determine the discrete time signal. Plot the discrete time signal.
Also determine the total number of samples.
I don't understand how to approach this question.
|
A composite signal is defined as
$$x(t) = \sin(2\pi 10t) + \sin(2\pi 40t) + \sin(2\pi 60t) + \sin(2\pi 50t)$$
Separate the four frequencies without using any of the transform techniques.
|
I'm trying to make a Phase Vocoder in MATLAB. But I'm stuck with the calculations on changing the pitch. I browsed loads of website and I simply do not understand what to do.
Currently I have in my MATLAB code a working flow where input = output
$${\xrightarrow{\rm Input}}\boxed{\text{sampling}}{\rightarrow}\boxed{\te... |
I'm a french student in engineering and I'm given a kind of mandatory technical project to work out on until February.
I must investigate the following article : https://www.osapublishing.org/DirectPDFAccess/C41EF419-AD7D-EDF3-A173E8B93A0B610C_350066/oe-24-19-22110.pdf?da=1&id=350066&seq=0&mobile=no and implement the s... |
For instance, an AR process can be generated through a white noise $w[n]$ passing through an all-poles system (IIR),
$$y[n] = \sum_{k = 1}^{p}a_ky[n-k] + w[n]$$
and we can analyze the IIR system, instead of obtaining the spectrum of the signal, to get some properties of the signal and therefore apply it to some applic... |
Antipodal Signalling has a bit error probability of $P_b = \frac{1}{2} \mathrm{erfc}\big(\sqrt{\frac{E_s}{N_0}}\big)$ and on-off-signalling has a bit error probability of $\frac{1}{2} \mathrm{erfc}\big(\sqrt{\frac{E_s}{2 N_0}}\big)$. Why does this correspond to a higher SNR of 3 dB which we need for on-off-signalling t... |
I am analyzing large volumes of raw accelerometer data (~12 hours @ 200Hz) using Python. Some calculations (e.g. deriving Jerk) necessitate a time index with a regular interval. I have microsecond-precision time associated with my data but I can see variance in the +/- 80μs range. Which method of time quantization will... |
I'm trying to code the algorithm described in Speech dereverbaration via maximum-kurtosis subband adaptive filtering by Gillespie, Malvar and Florencio, and the signal looks cleaner in when I plot it.
However there are 2 aspects of the results that are worrying me:
The sound level seems lower than the original when pl... |
so I am trying to compute the EEG(25 channels, 512 sampling rate, 248832/channel) bands (alpha, beta, gamma, etc.) with Python. I managed to do so by: firstly filtering the signal with a butterworth filter that looks like this:
def butter_bandpass_filter(data, lowcut, highcut, fs, order=2):
nyq = 0.5 * fs
low ... |
I have been given the task of doing audio compression using FFT.
The assignment is below.
Below is my MATLAB code:
% part 1
[y, f] = audioread('file.wav');
y = y(1:1024*161);
% p = audioplayer(y,f);
% play(p)
Ya = fft(y);
Y = fftshift(abs(Ya));
N = length(Y);
w = -f/2+f/N:f/N:f/2;
figure(1)
plot(w,Y)
% part 2
Y1 = ... |
Using the probability density function (pdf) we can estimate an unknown parameter using methods such as Maximum Likelihood estimation. If the pdf is not available, then Least Squares can be used. Other methods for pdf unavailable situations are Least Mean Squares.
Then there are other methods which are called as heuri... |
Can anyone suggest a matlab implementation of this problem? I've done this uptill now,
fs = 4200;
t = 0.001:1/fs:1;
x= sin(2*pi*10*t)+sin(2*pi*40*t)+sin(2*pi*50*t)+sin(2*pi*60*t);
% figure,plot(t,x);
t1 = t - 0.05;
x1 = sin(2*pi*10*t1)+sin(2*pi*40*t1)+sin(2*pi*50*t1)+sin(2*pi*60*t1);
% figure,plot(t,x1);
yref = x - x1... |
I'm looking for a good way of extracting features from the frequency domain of vibration data for a one-class support vector machine.
The image below shows an example from the dataset found in this link.
The dominant peak found at around 960 Hz corresponds to the "main frequency" of the system. E.g rotation*number of g... |
So, I have multidimensional time-series $X \in R^{(d \times T)}$, and I want to determine the covariance matrix of that signal in a specific frequency band.
I might filter the signal to that specific frequency band and do the usual $XX'$. However, if I assume the signal to be stationary, I might use the Fourier represe... |
I'll try to be most sintetic as I can.
I'm using an EEG system and I want perform an frequency analisys of the brain waves. I found this interesting article which describe how is possible to discern the "like" or "dislike" statement of mind looking at some specific band frequencies. To do this, they calculate the Power... |
I'm kinda new in this field, and I have a following situation. There is a 1s long audio signal, with Fs = 96000Hz, and I have 96000 samples accordingly. If I do a single FFT on the entire signal, I get this 1Hz frequency and 48000 points, resulting in a very "fat" logarithmic spectrum, like in the picture below.
How ca... |
I would like to compute a sweeping cutoff filter.
I wish to use SciPy.
I sliced my wave into x samples slices, in order to apply a different cutoff to each such created "frame".
The problem is that the filter, when applied to a slice filters the "clic" at the start of the slice, which creates an artefact for regathered... |
Let us have a random vector $\mathbf{x} \sim \mathcal{CN} (\boldsymbol{\mu}, \boldsymbol{\Sigma})$ with $\boldsymbol{\mu} \neq \mathbf{0}$. What can we say about the relationship between the elements of $\mathbf{x}$ in the following two separate cases?
1) If $\boldsymbol{\Sigma} \triangleq \mathbb{E}[(\mathbf{x}-\bolds... |
I have some troubles with understanding time domain, not on the intuitive level, but in math terms.
For example I have a vector signal $$ x = [x_0,x_1,x_2,...,x_{N-1}]$$
I understand that generally when we describe our signal in the form of a vector, we just put our information in a convenient form for further manip... |
In the tutorial, when white noise process is added to ordinary differential equations (ODE), the ODE becomes a stochastic process. Then the stochastic process needs to be solved using Euler Maruyama method and not ODE.
I am having a hard time understanding how to generate and add colored noise in the form of process no... |
I looked at many similar questions but still cannot find an answer to my problem.
I'm playing an audio file N, while recording a man talking (b).
The problem is that the microphone gets the played sound N together with the man talking, b. so actually I have y=N*+b in my recording, where N* is the played sound with a sh... |
I get it, about poles and zeroes, when we talk in terms of the transfer function.
But, if the transfer function is the ratio of the output to the input, then if the input signal is zero, then the gain should go to infinity, right?
Am I missing something?
|
I need some help with applying the properties of Fourier Transform.
We define the windowed Fourier Transform of $f \in L^2(R)$ as
$$Sf(\mu,\xi)=\int_\mathbb{R}f(t)g(t-\mu)e^{-i\xi t}dt$$
Prove that for $f=e^{i\eta_0t}$, we have $Sf(\mu,\eta)=e^{-i\mu(\eta-\eta_0)}\hat{g}(\eta-\eta_0)$
All I can obtain till now is th... |
I have a challenging question on how to normalize several audio clips so that they are comparable (similar) in RMS but without the clips clipping (having values over -1 and 1). Is there a systematic way to do this? One scaling factor must be found for all clips so that their L/R channels keep their ratio while at the s... |
I'm trying to build a script to do some signal processing from my RTLSDR. But, the bits I'm getting is not what I would expect.
The preamble using 'Universal Radio Hacker' looks like this:
But after plotting all values my script is seeing (-1 until +1) it looks like this:
Often I'm also getting plots that don't make ... |
I am in trouble with my study, could you please help me.
I have a set of data containing information about the signal that come from a preamplifier of the radiation detector system. After radiation interacts with the material of det., electrons and holes are created, then they will be charged through a CR high-pass fil... |
I'm using Matlab to process neurophysiological data and i'm currently dealing with this sort of noise in my signal:
Close up
EDIT:
For clarification, the clean signal should look like this:
EDIT 2:
Clean
Noise contaminated
These spectra were taken from 10s segments as the whole block is considerably bigger. Both s... |
Forgive the newbie questions, I'm just starting out and wanted some basic information.
I have a signal coming from a digital gyro, most of the useful information is below 90hz but I am seeing significant noise spikes from mechanical motor vibration at 200-400hz (the spike moves depending on motor RPM). This needs to b... |
I want to know theorem behind sobel operator. basically a first order derivative is -1/2 0 1/2 . its a vector. the question is how this vector is turned to a matrix below and what was theory and reason behind that?
-1 0 1;
-2 0 2;
-1 0 1;
|
I'm currentely trying to train a neural network that can decide wether a pattern produced by the movement of a hand near capacitive sensors is as expected, or random.
I have an MPR121 microchip linked with an arduino, providing me 8 signals ( ranging from 0 to 255 ), that stays at baseline ( around 135 for my current c... |
I am reading this document and in the section "Aliasing and Anti-Aliasing", the author make the following statement:
Consider a signal with two frequency components: $f_1 = 10\,\text{Hz}$ which is
our desired signal and $f_2 = 20\,\text{Hz}$ which is noise. Let's say that we
sample the signal at $f_s = 30\,\text... |
I currently have a graph which looks something like this:
Now I have discrete data that represents the Number of Clusters(the x values), giving us the Average Cluster Distance (the y values). There is only a single elbow point, after which the values just descend to 0. Finally, I do know the maximum amount that K can... |
I am trying to modulate the signal bl_msg_time (this is a speech signal) using DSB-SC modulation however the signal doesn't appear centered at the carrier frequency.
Below is the matlab code and the result of the plot.
f_car = 1000000;
msg_dsb_time = bl_msg_time .* cos(2*pi*f_car*t);
msg_dsb_freq = fftshift(fft(msg_dsb... |
Let $g, h_{HP}, h_{LP}: \mathbb{R} \rightarrow \mathbb{R}$ and $G, H_{HP}, H_{LP}$ denote their continuous Fourier transforms under the Fourier operator $\mathcal{F}$. Let $*$ denote the continuous convolution of two functions and $\cdot$ the pointwise multiplication.
Define the shorthand $1: \mathbb{R} \rightarrow \ma... |
I have multiple signals each measured with a sampling rate 300Hz. They are mostly periodic, although there are some parts of some of the signals, that seem to be random and do not follow the rest of the pattern(could be noise). I want to downsample this signal and I have found these three functions: decimate, resample_... |
Given that I have a stochastic differential equation describing the motion of my system like so:
$$ \ddot{x}(t) + \Omega_0^2x(t) - C\dfrac{dW(t)}{dt} = 0$$
Where $\Omega_0$ and $C$ are constants.
I then have the following equation in matrix form for my system dynamics
\begin{equation} \label{systemsDynamics} \tag{1}
\d... |
Assuming a pulse shaping of a source of symbols (like $s=\{3,-i,2+5i\}$), and a SRRC waveform (or any other waveform). I know that it depends on many factors like modulation scheme, but, in practice, are there any typical value or range of "number of samples per symbol" required for the pulse shaping process?
|
Why the impulse response (initial) rest conditions are taken like $h(t)=0$ and $h'(t) =1$, if the order of differential equation is $2$.
|
I have been doing some experiments with phaser programs. I really like setting the phaser feedback to really high levels, such that the effect is really metallic and resonant, almost like a physical modeling instrument. The problem with this is that it's easy to go overboard and get runaway feedback which gets harsh ex... |
Are there any mathematical transforms which can offset a select band of frequencies across the spectrum? (For sampled digital audio)
(crappy illustration)
|
I am trying to measure contrast of image by entropy of histogram of image.
Code for computing entropy
float measureContrast_inImage(Mat imagel) {
Mat hist;
/// Establish the number of bins
int histSize = 256;
/// Set the ranges ( for B,G,R) )
float range[] = { 0, 256 };
const float* histRange... |
My understanding of Nyquist's theorem is that you need to sample at a rate that's twice the bandwidth of a signal to fully recover it.
What exactly does the bandwidth mean in this context and what happens if you sample below this frequency?
I am trying to measure a physical signal that is filtered at 100 kHz, but which... |
How do you show the Discrete Time Fourier Transform of $x[n]=\cos(2\pi f_0n)$ is $ \frac{1}{2} \delta(f+f_0) + \frac{1}{2}\delta(f-f_0)$?
Here is my thought process:
The definition of DTFT in my textbook is:
$$X(f) = \sum_{n=-\infty}^{\infty} x[n] e^{-j2\pi fn}\quad\text{for}\quad \frac{1}{2} \leq f \leq \frac{1}{2}... |
Given a signal that consists of three 1.xxx kHz signals added together (where xxx is never more than 0.01). Each of the three 1kHz signals is 60 degrees out of phase (first is offset by 0 degrees, next is offset by 120 degrees, and the third is offset by 180 degrees), What's the best way to detect the fact that there a... |
This is in the context of speech signals. The magnitude spectrogram is computed by framing the signal into short time windows, applying a hamming (or similar) window, computing the fft over each window, and taking the absolute value of the complex numbers obtained. I came across the Auditory Spectrogram in a paper and ... |
I have a speech signal and have calculated the magnitude spectrum for the signal. Is it possible to get a good estimate of the original signal from the magnitude spectrum, seeing that phase information has been discarded after the FFT?
I have looked at the Wiener-Khintchine theorem, but I am unable to find any code ex... |
I'm researching certain acoustic prosodic features during live clinical interactions. Because of the setting, the recordings always have cross channel bleed, and in some cases everything is recorded on one channel (e.g., collaborations with people that have a video database).
I need to diarize the speakers for audio an... |
For what signal applies, that its autocorrelation function at point $0$ is zero, i.e. $R_f(0) = 0\ ?$
I know that autocorrelation is (RootMeanSquare)^2 and for $R_f(0)$ this
equals:
$$
R_f(0) = \frac{1}{T}\int_0^T f(t)^2 dt = \sum_{k=-\infty}^\infty \lvert c_k\rvert^2
$$
But I have no idea how to formulate that signal... |
What is the maximum count of non-zero elements, that can a linear convolution of discrete signals of "lengths" 5 and 7 have?
When I label the length of signal $x[n]$ as $M$, and the length of
signal $h[n]$ as $N$, then the length of their convolution is the signal $y[n]=M+N-1$. However this is not that thing I was look... |
I'd like to ask about the use of signal processing in CT scans ?
would be great if you suggest Book names or courses about it !
thanks in advance !
|
I've been playing with Second-Order Butterworth high-pass filter for a while.
I've calculated the coefficients using Matlab function and I wanted to use them to filter simple sine wave generated by Matlab.
Unfortunately the results are not correct/consistent, verified by Matlab filter(b,a, signal) function.
My Matlab ... |
The solution to the problem is $$y(t) = 5 + \frac{20}{\pi} \sin(\pi t) + \frac{20}{3\pi} \sin(3 \pi t) $$ and to get that the solution says to find the Fourier series expansion of $x(t)$ and I am having trouble doing that. I find that $C_0 = 5$ and that $$C_k = \frac{5}{j k \pi} \left( 1 - e^{-j k \pi} \right)$$. I do... |
Is there a way to work out an unknown waveshaper function, that was used to distort and map the values of an input signal to new output signal, form the output if we only have input signal and the output signal but missing the waveshaper function ?
|
I recently started working on sleep study.
For my research I download sleep EEG data from physionet. The EEG data has 100 Hz sampling rate and was recorded from 2 bipolar EEG site.
When I start the preprocessing stage, I encounter a simple problem:
How would I know if my signal has an artifact or noise?
It should be n... |
I'm using a complex-valued baseband signal as my input for subband adaptive filtering. Therefore i have a complex input spectrum.
My problem is now, how to split my complex spectrum into $N$ equally spaced subbands?
I know i could use a DFT filter bank with impulse responses of
$$\displaystyle h_i(n) = p(n)e^{(j2\pi... |
Given the spectrum of analog signal $x_a(t)$ which is imaginary and band-limited, find the lowest sampling frequency to be able to reconstruct $x_a(t)$ from samples $x[n]$.
My attempt: Bandwidth of the signal is $\Delta \Omega = \Omega_2 - \Omega_1$
Such the sampling frequency should be $\Omega_T = 2\Delta \Omega$
|
pwelch is a useful matlab function for computing real/magnitudes for power using WOSA method, but I'd like to apply the same thinking in order to output complex pairs for amplitude (not power) spectra.
Does anyone know if this is possible? Or if there is an existing script that I might be able to modify?
Thanks!
|
So, I'm evaluating the Discrete Sine transform Basis functions and I found on the internet the following picture:
So, I may be getting the point wrong, but, if the 2D DCT equation is:
Then the Discrete Sine transform shall be:
Then, it is clear that for the lower frequency (u=0,v=0) all cosines will be 1, but in th... |
Consider the Discrete Hilbert Transform, which takes a sequence $u[n]$ defined on the interval $-M\leq n\leq M$ and returns the discrete convolution
$$\tilde u[n]=\sum_{i=-M}^Mu[i]h[n-i]$$
where the impulse response function is given by
$$ h[n] = \begin{cases}
\frac{1}{\pi n}\big(1 - (-1)^n \big) \quad & n \in \mathbb... |
If I have an ideal high pass filter as the one in the picture:
And I downsample it by 2, e.g. $h_{new}[n] = h[2n]$, is my understanding correct that the resulting filter would look like this in the frequency domain:
|
I have an SDR that is capabple of 2.4Ms/s. I am using it to measure the power of signals. Right now I am setting the sample rate to 2M, collecting a burst of samples, and calculating the average power using
10 * log10(sum(abs(sample)**2 for sample in samples) / len(samples))
This gives me the average power over 2MHz... |
Hi I have a FFT which is quite noisy. How to apply to my code Hamming window to make it less noisy. Look at my code:
# Loop for FFT data
for dataset in [fft1]:
dataset = np.asarray(dataset)
psd = np.abs(np.fft.fft(dataset))
freq = np.fft.fftfreq(dataset.size, float(300)/dataset.size)
plt.semilogy(freq[f... |
How can I test if $y[n] = n x[n]$ is an LTI system? And any other system for that matter?
For example, how come $y[n] = \left( \frac{1}{2} \right)^n u[n]$, where $u[n]$ is the unit step, is an LTI system?
|
I have a big problem to solve fast but I couldn't find anything about how to do that. I have a vector of amplitudes $1 \times n$, they are simple integers. I want to multiply these amplitudes individually by $\cos(2 \pi f t)$, where the time $t$ is defined as the vector t=0:1/(10*f):1/f in Matlab. I couldn't find any s... |
Relate the transfer function to its' corresponding step response.
First, I tried setting up the poles and zeros of the transfer functions. This helped a bit since I know that $G_A (s)$, $G_B(s)$ and $G_C (s)$ should all have oscillatory step responses (because of conjugate poles). The problem arose when trying to det... |
Say, I create a Hermitian complex signal using,
import numpy as np
t = np.arange(-4, 4)
z = np.exp(1j * t)
Here z should be a complex signal with Hermitian Symmetry, as you can see below.
In [2]: t
Out[2]: array([-4, -3, -2, -1, 0, 1, 2, 3])
In [3]: z
Out[3]:
array([-0.65364362+0.7568025j , -0.98999250-0.14112001... |
What is the error variance of estimating the (frequency) and (initial phase) of a sinusoid using DFT.
please provide references if possible.
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.