instruction stringlengths 31 27k |
|---|
I am preparing for an examination and am confused about one of the questions on the study guide. The question given on the study guide is given below.
We want to implement a change of sampling rate by the factor 8/9. What
is the frequency cutoff required for the internal resampling filter?
I am assuming that the ques... |
i already know how to programmatically take the fft of a signal and display it, but now i'm trying to figure out how i can split the full fft into an arbitrary number of bands. i haven't yet been able to figure it out myself, and i can't seem to find any information on the web about this
what algorithm could i use for... |
Here is my code, i want to extract only the fingers and save them as a new image
import cv2
import numpy as np
from PIL import Image
def get_image():
global image
image = cv2.imread("testPalm.png", 0)
get_image()
image = cv2.GaussianBlur(image, (5, 5), 0)
ret, thresh_binary = cv2.threshold(image, 80, 255, cv2.THRESH_... |
I am studying for an exam and need help on a question on the study guide. The question is given below.
A symmetric FIR system $h[n]$ extends from $n=7$ to $n=11$.
a) What is the group delay?
b) How many zeros are there in the finite z-plane?
Here is my attempt.
a) The transfer function of an FIR filter is given as;
$... |
Let $x[n]$ be aliased sampling of real-valued $x(t)$ over $t_0 \leq t \leq t_1$. Can $|x(t)|^2$ be recovered more accurately than $x(t)$, over $t_0 \leq t \leq t_1$? If so, how?
For $|x[n]|^2$, superficially it's "yes", as aliasing can circularly shift certain $X[k]$, which $|x[n]|$ is invariant to. For $|x(t)|^2$, I s... |
My question is related to this post
I have a 1D vector, the target vector, represented as 2D (knowing the nr of cols and rows) to which i need to apply an FFT2D.
Having only the FFT1D, in order to obtain a FFT2D, i will need to apply it on each row and then on each column.
std::vector<double> targetVector;
int nrColTar... |
I'm working on estimating the FFT noise floor for a data acquisition system my colleagues and I are designing. I've read MT-001 several times.
In general, I think I get it. However I'm a little stuck on the units of the FFT noise floor section. Particularly, it seems like there's a jump from Power Spectrum to Power Spe... |
If I have a system: $$sX(s) = AX(s)+BY(s)+CZ(s)$$ How would I find the transfer functions $\frac{X(s)}{Y(s)}$ and $\frac{X(s)}{Z(s)}$?
Do I simply disregard one of the inputs? I am quite confused and not able to find any information on this.
Any help is appreciated. Thank you.
|
I have used the code from: https://github.com/quantumlib/OpenFermion/blob/v1.5.1/src/openfermion/linalg/wave_fitting.py#L41-L76
try using with my signal:
def ns_s(t):
if t >= 0 and t < 0.1:
return 10*np.cos(20*np.pi*t)
if t >= 0.1 and t <= 0.4:
return 10*np.cos(20*np.pi*t)+3*np.sin(40*np.pi*t)
... |
My question is somewhat similar to one I posted previously
I understand how coherence is defined in terms of spectral densities, but I would be elated if I could explain the basic concept of coherence, in terms of orthogonality, to my linear algebra students who have no signal processing
background.
I have two signals,... |
I am new here and new to DSP, so maybe my question is really basic.
I have the formula for the Ricker wavelet (Mexican Hat) in frequency-domain and I wish to do an inverse Fourier transform to recover my original signal in time-domain. I am using python numpy.fft module for this.
For some reason, instead of a Ricker wa... |
I am working with some very common, simple signals, such as square, triangle and sawtooth.
In my case the phase of such signals is important, so I want to be consistent throughout my work. For example, if I talk about a square signal, I want to be sure whether at $t = 0$ there is a rising edge or a falling edge.
In the... |
I have a 8 bit gray level image where if the value = 122 it means no information, value = 0 means highly negative, and value = 255 means highly positive.
I want to connect as many positive information pixels with each other as possible to form as large an area as possible (and not let accidental negative values affect... |
In my work, I came across the following expression of signal to noise ratio (SNR) which contains expectation operator.
The received sampling vector is
$\textbf{y}(n) = \textbf{h}s(n)+\textbf{u}(n)\tag{1}$
where $\textbf{u}(n)$ is additive white Gaussian noise vector, $s(n)$ is transmitted signal, $\textbf{h}$ is Raylei... |
I write some code, but result looks very strange:
import numpy as np
import scipy.linalg as LA
def music(X):
# create a signal
N = 64
m = np.arange(N)
P = 4
x = np.zeros((N, P+1), dtype='complex')
x[:,0] = 1.0*np.exp(1j*3.0*2.0*np.pi*m/N)
x[:,1] = 0.8*np.exp(1j*5.0*2.0*np.pi*m/N)
x[:,2] = 0.3*np.exp(... |
Suppose we have a discrete signal $x[n]$ and $y[n] = x[2n]$. I want to find $y[n-k]$. Is it $x[2n-k]$ or $x[2n-2k]$? I'm very confused by this operations. Can someone explain what's the logic behind it and give some references?
|
I am trying to detect the amplitude, frequency and phase of the dominant "buzz" in an audio signal. By "buzz" I mean a periodic signal with sharp edges. For example, an impulse train or a square wave.
In the frequency domain, "buzz" signals have a fundamental f0 and harmonics at integer intervals n * f0. Unlike other h... |
Im working on a Pulsed Doppler Radar
What is the way to calculate the SNR (with WGN)? What will be the lowest SNR for detectability?
Im using matched-filter(xcorr) to process the signal+noise.
My signal+noise are:
noiseGauss=(1/sqrt(2))*noiseAmp*(randn(1, length(t)) + 1i*randn(1, length(t)));
recv_sig = noiseGauss + (... |
I have OFDM system, where the modulated signal $x$ with length $N$, and $N$ is the number of subcarriers in OFDM symbol. $x$ is multiplied with a well-known unitary matrix $G \in N \times N$ before performing the inverse Fourier transform $F^{-1}$ matrix to produce the time-domain signal $y$, so:
$y = F^{-1}Gx \ \ \ \... |
When looking at the practical implementation of frequency domain SAR imaging algorithms like the range Doppler algorithm (RDA) and the omega-k algorithm (also called range migration algorithm, RMA) as described in "Digital Processing of SAR Data" by Cumming and Wong, one of the key steps is to perform an FFT along azim... |
I am trying to use (not implement VAD algorithm) voice activity detection to get timestamps for a given audio but facing hard time doing so.
What I am trying to achieve ?
Find an offline library for voice activity detection
What I have ?
I have an audio file (mp3)
What I am trying to get ?
Given an audio file (mp3),... |
The power spectrum $\texttt{PS}$ of a (white noise) signal depends on the frequency resolution,
$df=f_s/N$, where $f_s$ is the sample rate ($\texttt{Hz}$) and $N$ is the sample size.
The power spectral density $$\texttt{PSD} =
\texttt{PS}/(df \cdot \texttt{noise power window bandwidth})$$ effectively removes the depend... |
Are there ways to reduce the smearing / spectral leakage of zero-padding interpolated data?
I learned that, given a small collection of samples, one can increase the frequency resolution of an FFT operation by interpolating the sample size by appending zeros. This makes it easier to identify a peak frequency that would... |
In multiple sources (e.g. Richards, Mark A. "Fundamentals of Radar Signal Processing, Second Edition"), I come across the following expression for the CRLB for the time-delay parameter, assuming additive white Gaussian noise (assuming $s(t)$ is complex):
$$
\sigma^2_{t_0}\ge \frac{\sigma^2_n}{2} \left[ \sum_{n=0}^{N-1}... |
I'm new to DSP. As I reading the textbook, I cannot understand the formula $X_{s}(f)=\frac{1}{T}\sum_{n=-\infty}^{\infty} X(f-nf_{s})$. Could you please give me some keywords so I can learn the theorem and understand it?
From spectral analysis, the original spectrum (frequency components) $X(f)$ and the sampled signal... |
One of the core parameters of any radar system is its center frequency. Another core parameter is its bandwidth, which is the reciprocal of its ranging resolution. I am wondering: Is there some sort of dependence or relationship between those two? Naively, I would say that the higher the center frequency, the higher al... |
I'm working with software-defined coded orthogonal frequency division multiplexing radios.
They have a choice of bandwidth, 1,2,3-20MHz.
Of course, as you increase your bandwidth (carrier size), you increase your throughput. However, is there an equation or rule of thumb that indicates if 20MHz gets you x-distance, 10M... |
maximum RBs for 60MHz with SCS = 30 kHz is defined to be 162 RBs, so NSubcarriers is 162 x 12 = 1944, 1944 < 2048. Then NFFT size for 60 MHz bandwidth with SCS = 30 kHz should be 2048 instead of 4096.
|
I only know the "vanilla" use of a Kalman filter and I am currently trying to understand an article available here (the algorithm is presented in the 6 first pages) :
Adaptive Single Neuron Anti-Windup PID Controller
Based on the Extended Kalman Filter Algorithm, open access
In which the plant is controlled by a PID w... |
Suppose $f=300$ and I sample from $x=\cos(2\pi f t)$ and $y=\sin(2\pi f t)$ for a period of one second with sampling frequency $f_s=1000$. Then the number of samples is $N=1000$ and the DFT's for $x$ and $y$, in this particular example, are given by $X_f=\frac{N}{2}\left(\delta(f-300)+\delta(f-700)\right)$ and $Y_f=\f... |
Consider N-point sine signal mixed with a random noise (implemented in Python below):
import numpy as np
%matplotlib inline
import matplotlib.pyplot as plt
N = 128 # num of points in signal
t = np.arange(0,N,1)
sample_num = 5
freq = sample_num/N
sigma = 1.5
# random noise
noise = np.random.normal(0, sigma, len(t))
noi... |
I have an issue, where my numerically calculated leakage from a DFT of a simple cosine does not match the theoretical prediction from the convolution theorem. I will try to present the example using technical units as opposed to the usual unit-less representation, so that the different Fourier transform can be more eas... |
How can power or energy be computed from Continuous Wavelet Transform? Is it just $\sum |\text{CWT}(x)|^2$, or are there other considerations, particularly if interested in a subset of frequencies?
Do the results interpret differently from what's computed from DFT?
|
Can someone explain to me how I can reconstruct a signal using the scipy.signal.morlet2?
The codes in the link only allows one to do a fourier transform using the morlet wavelet, but there is no such code for inverse fourier transforms (reconstructing my transformed signal).
Any help would be gratefully received.
Thank... |
I'm fairly new to crossfading albeit having a fairly good understanding of the mathematics and physical units.
What I can't wrap my head around is as to whether there is a difference between crossfading between files and between physical speakers.
What I want to achieve is a constant loudness/volume level across the fa... |
I want to obtain the impulse response of a space to calculate reverberation time using the Schroeder method. This space is characterized by the short reverberation time within 0.5 seconds due to the properly installed sound absorption materials.
Theoretically, I know that impulse response can be obtained using the inve... |
The signal processing steps for a pulsed radar are: Fast time matched filter -> Slow time FFT.
I cannot understand how is the second step able to detect frequency,
because the results after the matched filter will look like:
I.e each peak will be shifted from its prior.
How is the FFT on slow time able to detect some ... |
I have succesfully modeled a modem using floating-point data and with the following scheme, where the SRRC filter has gain G=6dB.
Modulator -> SRRC(UPx4) -> D/A -> Channel -> A/D -> AGC -> SRRC(DOWNx2) -> Remaining receiver blocks
The modulator outputs full-scale (-1 to +1) I/Q values and at the receiver I'm getting a... |
I know that complex exponentials are eigen functions of LTI systems for example $e^{j2t}, e^{-j5t} , e^{j8t}$ .
If we can define complex exponential as $e^{st}$ where $s$ is a complex number. Can we say that $e^t,e^{2t},e^{(2-j4)t}$ are still complex exponentials and they are eigenfunctions to LTI systems ?
I know that... |
I made a thing which involves a FIR filter, and in that process I cobbled together some random numbers for the convolution which I figured would work the way I wanted.
Now I want to be able to take what I "designed", and fiddle with it in a domain which gives me more control. Like in a filter design tool, or as the co... |
I want to generate human voice using fft. For this, I analyzed a fft of my mother saying "e" and the result was that the points are in a normal distribution. Then I created a fft using a normal distribution, but the sound is a hissing.
On this site https://murilos.pythonanywhere.com/ are the two ffts, one with my mothe... |
import cv2
import numpy as np
img = cv2.imread("Inkedfish.jpg")
# some preprocessing
img2 = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
img2 = cv2.dilate(img2, (3,3))
img2 = cv2.blur(img2, (3, 3))
_, thresh = cv2.threshold(img2, 10, 255, 0)
contours, _ = cv2.findContours(thresh, cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_SIMPLE... |
Why and How the plot between the real and imaginary component of an analytic signal is in the form of an ellipse pattern ? How does the ellipse pattern varies with the variation in real and imaginary components of an analytic signal ? Can you share a research paper (journal or conference paper) to study more about it ?... |
I want to plot the constellation diagram of 64-QAM for a complex signal, x = cos(2*pi*n/N) + 1i*sin(2*pi*n/N) where n=1:1:N; N=1024; % N is total number of samples
But it gives a circular scattered output when doing scatterplot(x). In the MATLAB documentation for ConstellationDiagram and others, integer or binary data ... |
What are the Pros and Cons of using Wigner-Ville Distribution for spectral analysis of a signal vs taking the STFT. When is it appropriate to use one over the other and is WVD used in real-time implementations?
Update: Since no answers were received for the first few days of this post, I tried posting the same question... |
Question: Specify the straight -line approximation of the Bode magnitude plot: $$H(j\omega) = 0.04 \cdot \frac{jw+50}{jw+0.2}$$
I don't understand that in the plotting part we add 6dB for two intervals. Why and how we did that?
|
I’ve been given the following Difference Equation and tasked with finding the response to $x_0[n] = (-p)^n$ - I’ve managed to $h[n]$ but the convolution itself failed.(The given system is IAR).
$$y[n] -py[n-1] = x[n]$$
So I know that an IAR DE is a causal LTI system, with $$H(z) = \frac{1}{1-pz^{-1}}$$
which I plugged ... |
I am simulating one UE at 10 km from gNB using 5G System-Level Simulator from Matlab. The BW = 20 MHz, and UE EIRP = 23 dB and channel is CDL-A (NLOS) / CDL-D (LOS), with a delay spread of 260 ns...
I am getting some throughput and goodput even when BLER is 1 (see the results below).
Is this correct? either yes or no, ... |
For a complex system where symbolic computation of the jacobian is challenging, is estimating the jacobian via finite difference a viable option?
To be explicit I'm mostly interested in playing around with IMU currently and some of the theory surrounding IMU error propagation and Lie algebra is a bit more than I want t... |
Page 168 of Digital Image Processing, Global Edition says:
we know that the values of a Gaussian function at a
distance larger than 3 from the mean are small enough that they can be ignored.
If we get the mean of Gaussian to be 0 and = 1, then It seems above says elements in kernel which their values are equal to $\... |
Say we have two audio tracks of the same movie but from different sources. The length of the animated logos at the beginning is different, so the actual movie audio starts slightly earlier on one track comparing to the other. The quality and volume of the audio can be different too.
How to find out the exact time offse... |
I want to learn basic transceiver algorithms.
I already have a good grasp of the mathematics and statistics involved, so I am primarily interested in algorithms.
Any books or site recommendations, so I can start learning?
|
I am working on a simple MFSK modem for use on the HF band. I'm having trouble recovering the symbol timing information from the stream.
With 2-FSK it's easy - just subtract one frequency from the other, and use the 0-crossing point to determine how far off you are (ideally, the 0-crossing point should be right in betw... |
I have a problem to solve, I need to get the frequency spectrum from the first plot, and then transform it into the second plot using resampling and filtering.
My thought process was, I can upsample by a factor of 2, then hi-pass > 1000Hz to filter only the mirror image, then downsample by a factor of 2.
I have a hard... |
I need to design a 3/2 resampling filter using polyphasic filters. On my original filter I have coefficients $$h[n] = [a_0, a_1, a_2, a_3, a_4, a_5, a_6, a_7, a_8, a_9, a_{10}, a_{11}]$$ making it an order $12$ filter.
I visualize this implementation:
So I am taking as downsampling subfilters of type 1 the coefficient... |
I'm struggling understand the mathematics behind how the component of a sampled continuous signal at a given frequency can be determined.
Assume my sampling rate is $f_s=100$ for 3 seconds, so $N=300$.
If I have a signal vector, $\vec{x}$ in $\mathbb{R}^{300}$, I know it can be
expressed as a linear combination of the ... |
I'm working on a paper where I'm collecting sound pressure data from a chord's wave and trying to create a frequency spectrum to find the individual frequencies that make up the chord.
However, I can't process too many data points (software). To ensure a sampling rate higher than twice the highest note, I can't collect... |
I saw in Correlation: A Magnitude or Power quantity? post the derivation for $\rho$ (the mean of the normalized correlation coefficient) and its relation to the SNR of the signal.
I'm looking to see how $N$ (the length of the template $x$) is related so I tried to calculate the variance of $\rho$ but I couldn't do it o... |
I have been working with digital signals for quite some time and this fencepost-error issue when taking a simple example of sample frequency and sample spacing always trips me up (and I must say drives me completely crazy):
$f_s$: sampling frequency, number of samples per second
$t_s$: sampling spacing, $1/f_s$
This is... |
Suppose I sample from two continuous signals, $x$ and $y$, with sampling rate $f_s=1000$ Hz yielding $N$ samples.
A plot using coherence from scipy.signal shows frequencies up to $f_s/2$. Given the DFT conjugate relationship, $X[N-k]=\overline{X[k]}$, the relationship between the power spectral densities and the DFTs, ... |
Is there a known algorithm or an existing implementation that performs a "continuous autocorrelation"?
Meaning, in a situation where I sample a signal and every time I get a new sample (or every several samples) I want to calculate an autocorrelation function for N samples back.
It seems preferred to do it in a continu... |
I’ve been given a triangular signal that looks like this:
$$ X^{F}(\omega) = (2 -|\omega|) \cdot W_{[-2,2]}(\omega)$$
(this is just my interpretation of the signal from a picture I’ll add). I was asked to find it’s time domain representation. I tried expressing it differently, splitting the window into two heavisides, ... |
A dataset of mri and ct scan images of patients has been prepared. There is a feature /damaged area/ in the mri image that is easily visible. But the injury of this area is not visible in the CT scan image. We want to train the model using CT scan data of injured brains. Is there a way to specify the damaged areas in t... |
I need to compute the DCT of a signal (in fact its a image). As I already have the DFT of that signal, I wonder if there is any cheap way to obtain the DCT in terms of the DFT.
Note that I am not asking if the DCT can be computed via the FFT, which has been answered here. The answers in the cited question perform modif... |
I have $$y(n)-3y(n-1)+2y(n-2)=4x(n)-2x(n-1)$$ that is the equation for a causal, discrete time LTI system. Using the Laplace Transform I rewrote it as: $$Y(s)-3e^{-s}Y(s)+2e^{-2s}Y(s)=4X(s)-2e^{-s}X(s)$$ And then I tried calculating $$H(s)=\frac{Y(s)}{X(s)}=\frac{4-2e^{-s}}{1-3e^{-s}+2e^{-2s}}$$
But the correct respons... |
I'm trying to design a new filter with IIR to filter out specific bands.
Basically it's a bandpass filter with 2 Octave or 3 Octave bandwidth but the filter order should be equal to 1/3 Octave filter.
Main objective is to analyse a 1/3 octave band level or sum of a few 1/3octave bands. MY DSP is filtering the input sig... |
I'd like to get a zero phase for vertically symmetrical signal (as it done here, FIGURE 10-7).
For this purpose, I tried to test it on gaussian signal in Python:
%matplotlib inline
import matplotlib.pyplot as plt
import numpy as np
t = np.arange(0,64,1)
center_left = 0
center_right = 63
sigma = 2.5
signal_left = np.e... |
Is it possible that can estimate convolutional kernel that have multi channels and multi filters ?
I saw answer from this to link to estimate kernel for one channel and one filter (Estimating Convolution Kernel from Input and Output Images).
When I tried to implement it, I found that it cannot do correlation because th... |
I am modelling the path of a rock deposited onto a glacier and its englacial flow with the ice within the glacier in MATLAB. I am doing this with the 2D advection equation. However, I do get some unwanted artefacts / noise in my results, especially at the left of the attached image. I tried a 2D median filter, but this... |
Let's say we have this Laplace transform:
$$H_{1}(s)=\frac{1}{(s+1)(s+3)}\;, \; \Re{e} (s)>-1 $$
So, we know that there is a poles at $s=-1$ and $s=-3$.
With these informations, we found that to be a low-pass filter in class. How? How do we sketch the frequency response? What are the conditions to determine filter type... |
I have a dsp algorithm which is based on the below given state space model in the continuous-time domain
$$
\begin{bmatrix}
\frac{\mathrm{d}\hat{\psi}_{r_{\alpha}}}{\mathrm{d}t} \\
\frac{\mathrm{d}\hat{\psi}_{r_{\beta}}}{\mathrm{d}t}
\end{bmatrix}
=
\begin{bmatrix}
-\frac{R_R}{L_L + L_M} & -p_p\cdot\omega_m \\
p_p\cdo... |
I have been given a data distribution which was synthetically generated by geostatistical methods such as variogram analysis. Without having the source of the technique which generated the data, is there any way to find out or at least estimate the level of noise (a parameter to quantify how noisy the data is or the am... |
Given a discrete-time domain signal $x[n]$ defined as
$$x[n] = \begin{cases}1 & 0 \leq n \leq L-1 \\
0 & \textrm{otherwise}\end{cases} $$
we are tasked with computing $$\sum_{k = -\infty}^{\infty}x[n-kR]$$ where $R = \frac{L}{2}$. Additionally, $L$ is a power of 2.
Is it possible to get a closed-form expression for the... |
I have 21600 data in the time domain. What Sampling frequency should I use? can someone explain the effect of showing the result by selecting different sapling frequencies?
Cheers
|
I am trying to preprocess audio clips for a keyword spotting task that uses machine learning models.
The first step is to calculate the spectrogram starting from the waveform and in order to do so I have found that there are two ways within the tensorflow framework.
The first one is to use the tf.signal library.
This m... |
What is the method to compute Cramer-Rao lower bound for a particular application. For example I have an application in which FFT of an incoming signal is performed to get a Coarse estimate and then Interpolation between bins of interest is performed to get a finer frequency estimate. Now how can I compare my results w... |
I have to design a bandpass filter with passband frequency [300Hz 500Hz] and sampling frequency is 16kHz.The stopband attenuation required is 60dB.I have used butterworth filter in MATLAB to design the filter. Now to implement the same specifications using an FIR filter, what should be the order of filter chosen. My do... |
I am currently working on an application in which I have a Linear acoustic array, the audio of which is analyzed using FFT. Now I also want to perform phase difference calculation and have also learnt that it is possible to do so in the frequency domain as well by simply calculating the phase using atan function on the... |
This question is an extension to the question about WVD vs STFT originally posted Here. During the QA it was pointed out that the WVD only works for noiseless signals.
To test that out I created a simple chirp signal in MATLAB and compared WVD spectrograms at different SNRs.
Below is the time-domain signal on the left ... |
Module that I am using is KLD-7 radar Transceiver from RFbeam
I am new to FMCW radar systems and I recently started working on distance and velocity calculations from such a system. Although the module provides the built-in functionality to calculate distance and velocity, I want to replicate those measurements using t... |
I've tested out the Chamberlin digital state variable filter (DSVF) as a sine generator as per this well-known approach. At $f_0=686\text{Hz}$ tone and $f_s=48000\text{Hz}$ it sounds fine and the FFT shows exactly two peaks at -220Hz and 220Hz; at $f_0=687\text{Hz}$ it buzzes.
The Chamberlin filter looks as below. Se... |
I don't understand why the frequency spectrum of a trapezoidal signal looks like this. I was expecting either a $\mathrm{sinc}$ or a $\mathrm{sinc}^2$, but it seems to be a combination of both.
|
I have obtained the following z-domain transfer function:
$\frac{Y(z)}{U(z)}=\frac{3.3641×10^{-7}×z^{6}+1.5584×10^{-5}×z^{5}+6.7263×10^{-5}×z^{4}+
5.5016×10^{-5}×z^{3}+8.525×10^{-6}×z^{2}+1.2303×10^{-7}×z+9.7492×10^{-20}}{z^{7}-5.5998×z^{6}
+13.5548×z^{5}-18.3685×z^{4}+15.0393×z^3-7.4352×z^2+2.0541×z-0.2245}$
This is a... |
I have an audio recorded, recorded by a 2 mics array. I want to a Python code that get the audio as input and estimate the RT60 reverberation time. I do have a function that estimates RT60 from a impulse response (IR). See below.
In theory I could try to extract the IR from the recorded audio, but since it involves dec... |
I have an anisotropic image that is anisotropic both in terms of number of voxels and also in terms of voxel resolution.
1. Number of voxels: 256x512x96 (wxhxd).
2. Voxel resolution: 0.5x0.5x2.0 micrometer (wxhxd).
Now, to perform uniform Gaussian blurring, I need to choose different sigma values in each direction. ... |
I'm want to generate the IQ components of a FSK signal using numpy and then try to demodulate the resulting IQ samples by looking at the derivative of its phase in time.
This is the script I have:
import numpy as np
import matplotlib.pyplot as plt
from scipy import signal
fs = int(1.8e6) # Hz
rb = int(1e3) # bps
mess... |
I found an image hash library for python and this blog
In the block Getting Funky With pHash, the author writes:
Further reduce the DCT. This is the magic step. Set the 64 hash bits
to 0 or 1 depending on whether each of the 64 DCT values is above or
below the average value. The result doesn't tell us the actual low
f... |
A theoretical question in echo cancellation performance evaluation: $\mathrm{ERLE}$ = $\mathrm{E}$cho $\mathrm{R}$eturn $\mathrm{L}$oss $\mathrm{E}$nhancement, is defined as
$$
\mathrm{ERLE} = 10 \log_{10}\left(\frac{\mbox{power before EC}}{\mbox{power after EC}}\right)
$$
Modeling the echo canceller as $x = d + e$ whe... |
My question is:
Which type of diversity technique is used by the rake receivers?
In Bahai, et. al. "Multi-Carrier Digital Communications Theory and Applications of OFDM,"
Second Edition, 2004, on page 27, it is said that RAKE, OFDM, and Equalization, are all using frequency diversity, but here and there on the internet... |
In Boaz Porat's book about signal proccessing, at part 8 he mentions the example:
$$ H\left(z\right)=1-z^{-1}\Rightarrow H^{f}\left(\theta\right)=1-e^{-j\theta}=\left(e^{\frac{j\theta}{2}}-e^{-\frac{j\theta}{2}}\right)e^{-\frac{j\theta}{2}}= \\
2j\sin\left(\frac{\theta}{2}\right)e^{-\frac{j\theta}{2}}=2\sin\left(\frac{... |
I am working on a radar signal processing project using MATLAB. I am required to simulate range doppler maps for Linear Frequency-Modulation (LFM) targets (non-fluctuating) in noise at various SNRs (40dB to 0 dB) at the range doppler output. I am using the AWGN function to add noise to my received echoes.
My simulation... |
What is the best way to define a detection statistic for a time series event trigger generator, which computes the wavelet transform of some time series data? I want such quantity to be similar to a blind SNR, but based on wavelet coefficients.
|
I am trying to implement the discrete Fourier transform.Here is my code in MATLAB:
sym k
n = 1:4;
disp(n);
y = n-2>=0;
z = n-4>=0;
x = y-z;
X(k) = sum(x.*exp(-1i*2*pi*k.*n/4));
l = 1:4;
subplot(1,2,1);
stem(l,abs(X(l)));
subplot(1,2,2);
stem(l,angle(X(l)));
I get these results for magnitude and phase:
However when ... |
Let's say I have a noisy raw signal with 1GS/s sampling rate (That means the time resolution is 1 ns). Now I apply a FIR lowpass filter (window filter) of 25 MHz on it. The length of Window filter will be 40 ns in time domain. Since it is doing convolution in time domain, does it mean that I get one "non-correlated" po... |
In my previous question, I tried to implement the DFT. Now I want to compare it to Matlab's FFT
My input signal is:
x(n) = n-2>=0
Here are the results:
As you see, my DFT doesn't match Matlab's results.
This online calculator agrees with my snippet of code. What is going on?
|
i am currently struggling to find the Transfer Function of the following Block Diagram, since i have never done it for a non recursive System, could somebody please walk me through the process of it?
My first step was setting up the Difference Equation:
$$g(n) = a*s(n)+s(n)*(a+1)*z^{-1}+a*s(n)*z^{-2}$$
Now I went on t... |
I want to analyze the motion X(t) of a very flexible structure, which is excited/forced by unknown perturbations, in order to characterize this perturbations.
Hence, I plan to record the motion at one point of the structure thanks to a sensor, and then to analyze the results with a FFT to find the greatest contribution... |
Let say I perform an experiment and I record data at a given frequency sampling $F_s$ and then I perform FFT analysis on these results.
As I do not know the characteristics of the perturbation that I record before conducting the experiment, especially the maximum frequency that exists, I am not able to choose $F_s$ acc... |
For the following system:
We have:
$$r(t) = s(t) + Ks(t-\tau)$$
where $|K|< 1$, with the following impulse response $h(t)$ and frequency-response $H(f)$:
$$h(t) = \delta_0(t) + K\delta_0(t-\tau)$$
$$H(f) = 1 + Ke^{-j2\pi f\tau}$$
The following question is asked:
For a band-limited input signal $s(t)$ with cutoff freq... |
I am trying to implement a high pass digital filter in MATLAB.
High pass filter:
function [hd,n] = idl_highPass(wc,N)
if mod(N,2)==0
a = N/2;
else
a = (N-1)/2;
end
m = 0:1:N-1;
n = m-a+eps;
hd = -sin(wc.*n)./(pi.*n);
end
I use the freqz() function to find the DTFT(or frequency response)of the filter but I... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.