instruction
stringlengths
31
27k
The question was asked before in C: How can I generate a sine wave with time varying frequency that is continuous? How can I resolve the following problem? I want a continuous graph. But how do I do I do it in python??? my code is import numpy as np import matplotlib.pyplot as plt import seaborn as sns sns.set() x=...
Calling scipy.signal.sosfreqz with a sos-matrix describing an ordinary butterworth bandpass returns an array of h coefficients, of which the one at index 0 is of value 0.0+j0.0. A problem arises when the filter needs to be scaled to 0dB plotted via plt.semilogx(f, np.array([20 * m.log10(abs(value)) for value in h]), la...
In Signal Processing, we broadly categorize signals as either being "Energy Signals" or "Power Signals". If the total Energy for a signal is finite, we categorize it as a Energy Signal. Otherwise when the total Energy of the signal is infinite, if the total Power of the signal is finite, we categorize it as a Power Sig...
Suppose there exists a temporal voltage signal composed of short pulses, modulated by a sinusoidal envelope. One desires a hardware-based signal processing scheme to maximize signal to noise ratio (SNR) measured at both (a) the frequency (repetition rate) of the pulses and (b) at the frequency of the modulation. The tw...
Guys do you now why line coding also called digital base band modulation named "line coding" where does it come? and how is the name related to modulation
I'm currently working on a phase vocoder implementation based on the Short-Time Fourier Transform; it's heavily based on the models described here and here. I have successfully completed the analysis phase, wherein $m$ FFT frames of size $N$ are derived from a time-domain signal $x[n]$ These frames are sampled from eq...
I've observed an interesting phenomena in a system I am working on that almost seems intuitive, but I don't have a good explanation of. I'm hoping someone can offer an explanation of what's happening. I have a device that samples at 5 MHz. This data is filtered with an FIR filter to about 80% of Nyquist. The output of ...
As part of my diploma thesis I'm implementing digital communication system based on audio transmission in free space (STMF401RE + analog microphone). I'm using BPSK modulation and I've implemented costas loop for frequency and phase recovery and symbol (which is byte in this case) starts detector using correlation and ...
hello i'm doing signal processing like this S : FFT of input signal from microphone Exp : just gain 1/(Q*J) : include frequency component, I convert this equation to frequency domain digital filter using frequency sampling method and similar process are conducted several time and i'am doing overlap and save method lik...
Sometimes, we met Non-causal FIR filter problem like this picture left is ifft of frequency response and right is time shifted fir filter to be causal filter in noise cancellation problem, delay is very annoying things. my question is if i do filtering process in frequency domain, ideal filter (that is not delayed for...
Firstly apologise if I use the wrong terminology, I don't have formal experience in signal processing, hence I would appreciate the help a lot. I have a time-domain photon counting signal which due to experimental limitation has 256 time bins. This is considered quite 'scarce' in my field, and analysis is difficult. Si...
I have given the transfer function $P(z)$ of an LTI system in z-domain. Furthermore, I have a time-discrete finite length input signal $r$. I want to calculate the system response $y$ in time domain. The calculation must be implemented in a real-time system later. If $P(z) = \frac{z \ T_s}{z\ (T_s+T_1)-T_1} $ (PT1 syst...
Suppose a signal is a superposition of multiple intrinsic-mode-type (IMT) functions, say $$f(t) = \sum_{i=1}^n A_i(t)e^{i\varphi_i(t)} $$ Why is the separation condition of $f(t)$ be $$\forall i,j \quad|\varphi_i^\prime(t) - \varphi_j^\prime(t)| \geq \Delta$$ for some $\Delta >0$. There is an explanation in Time Freque...
I am stuck trying to calculate the DFT for a given $N$ Given the signal $x[n] = \cos(\frac{\pi}{2}n - \frac{\pi}{2})+2 \cos(\pi n + \frac{\pi}{2})$ and $N = 4$ I tried to calculate the DFT $X[k] = \sum\limits_{n=0}^{N-1}x[n]e^{\frac{-2 \pi ink}{N}}$ Now since $X[k] = \sum\limits_{n=0}^{3}x[n]e^{\frac{-2 \pi ink}{4}} =...
I have an image, which has an inherent mask built into it. The exact shape isn't super important, but it looks something like a circ multiplied by a rect. I would like to calculate the 2D Fourier transform of only the masked region. If I calculate the Fourier transform over the full image it will have spatial frequenci...
Detecting pitch: It seems that selecting the modal frequency in the frequency spectrum is too simple an algorithm for reliable results. For detecting, and changing, the pitch of a note, what are the best / fastest algorithms?
In NTSC analog television (presumably PAL is similar) the chroma (color) signal is included through a subcarrier which is QAM modulated. This particular QAM modulation is a bit unusual in that besides being analog there are two peculiarities: the Q signal has a smaller bandwidth than the I signal, and the I signal has ...
For the definition of the DFT we have $X[k] = \sum\limits_{n=0}^{N-1}x[n]\exp(- \frac{2 \pi i \cdot n}{N} k)$ Let's say for simplification that $N$ is even. Then $k_{N/2-1} = \frac{N}{2}$ is considered as being the nyquist frequency and $X[k_{N/2-1}] = 0$ What is the inuitve and mathematical reason for the two s...
I am curious about software implementation of analog filters. For example, let's say I have a moog low pass filter. What should I do to turn this device into satisfactory, analog sounding software. I don't actually want programming advice(doesn't mean I won't be grateful if given), what I want is to know what coefficie...
This question is motivated by 23:00 in this video. It shows how the output from 'row' DCT is fed in to 'column' DCT for JPEG, and shows this image (highlights are mine): In the top 'Rows' row my intuition is that the rows I've highlighted green correspond to each other, to the top row in the original image. Further it...
I am approaching to the study of FIR systems. In particular, I was analyzing the graphs of amplitude and phase of the transfer function, when I had some trouble understanding how the phase behaves. Let me explain this with an example: Suppose that our transfer function is $\displaystyle{H(z)=\frac{1-z^{-5}}{1-z ^ {-1}}...
I'm generating Polyphase filter taps for a square pulse for symbol timing recovery. Assuming I have NFilts elements, all I do is Create a basic filter Interpolate by padding NFilts - 1 Zeros Convolve the interpolated taps with a low-pass upsampled by NFilts Partition the resulting taps into NFilts sub-filters This se...
I have been exploring different ways of improving the EVM performance of quadrature demod block for GMSK demodulation. As we all know, the Gaussian filter introduces intentional ISI, which can be pretty destructive at lower BTs values. I suppose a Viterbi demodulator, which is the ML solution for GMSK, can deal with IS...
I was playing around with plotting DFT and realized that the negative frequencies are symmetric to the positive frequencies reflected at the nyquist. Plot shown for the signal $f(x) = \cos(\frac{\pi}{2}x - \frac{\pi}{2}) + 2\cos(\pi x+ \frac{\pi}{2})$. So why are the negative frequencies symmetrically distributed ...
I would like to convolve two signals: Room impulse response that was obtained by deconvolution, measured at 48 kHz. Truncated to 8192 samples. Anechoic recording (.wav) recorded at 41.1 kHz If I perform a fast convolution in the frequency domain, I understand I should do as follows: [x, fs] = audioread('sound.wav'); ...
I was wondering if there is a 'ready-to-use' implementation available of the (boundary-corrected) wavelets constructed in Cohen, Albert, Ingrid Daubechies, and Pierre Vial. "Wavelets on the Interval and Fast Wavelet Transforms.” Applied and Computational Harmonic Analysis 1, no. 1 (1993): 54–81. https://doi.org/10.1006...
Description of the data and problem: I have a signal sampled at 1000 Hz. I'm low-pass filtering it at 120 Hz, and want to make spectrograms of the frequencies below this threshold. I'm using the scipy functions fftpack.fftfreq to get the Fourier coefficients, then fftpack.fft to do the actual transform. The signal is...
I have a discrete image of size $2^N \times 2^N$ which I would like to iteratively downsample to produce a pyramid with image sizes $2^k\times 2^k, \, k=0,\ldots,N$. That is, each subsequent image will have half the resolution along each axis. So I would like to better understand how this is modeled mathematically. My ...
most system have 48khz and if i have 40tap low pass fir filter that cutoff freuqency is 300hz, filter delay is 1/48000*20 = 0.0004s but the frequency resolution is very sparse and i think if the filter have complicated shape the performance is not good. and if i do downsampling to 2000hz, performance is better if i des...
Here is matlab code ㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ fs = 2000; f = 0:20:1000; D = besselj(0,f); DD = fliplr(D); DD(1) = []; DD(end) = []; H = [D DD]; h = ifft(H); ㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ to make even fir filter D : half desired frequency response DD : half desired frequency res...
I know the DFT, I agree with the formula and everything, but I don't get the intuition on the link between frequency resolution and number of samples. Like, why would I get a higher frequency resolution by taking more samples in my DFT? The formula is: Here, we are not summing on a finite number of k discrete frequenc...
i want to make arbitrary shape digital filter from equation. that have own magnitude and phase response. the equation is bessel function. the frequency response is below zero phase and real value and i make filter using frequency sampling method like this x : frequency, y : magnitude and it's impulse response is this ...
Given the complex lowpass signal $x_l(t)$, its real bandpass equivalent signal with center frequency $f_c$ is \begin{align} x_b(t) &= \text{Re}\{x_l(t) \cdot e^{j2\pi f_c t}\} \\ &= \frac{1}{2}\left(x_l(t) \cdot e^{j2\pi f_c t} + x_l^*(t) \cdot e^{-j2\pi f_c t}\right) \label{eq1} \tag{1} \end{align} Similarly, given a ...
I am working on a problem of phase (/phase derivative) retrieval from closed fringe patterns. The paper https://opg.optica.org/ao/fulltext.cfm?uri=ao-58-16-4420&id=413113 which uses a pseudo-Wigner Ville distribution (PSWVD) to directly estimate the unwrapped phase derivative is what I want to implement. The PSWVD met...
Given the real bandpass signals $x(t)$ and $y(t)$ with center frequency $f_0$ and lowpass equivalents $x_l(t)$ and $y_l(t)$ respectively, I want to show that $$ \int_{-\infty}^\infty x(t)y(t) \ dt= \frac{1}{2} \text{Re}\left[\int_{-\infty}^\infty x_l(t)y_l^*(t) \ dt \right] $$ but I am stuck in the following derivation...
I have a system I'm working on that inputs an 18 bit ADC output into an FIR filter on a Xilinx FPGA. I'm a little concerned I may be representing the numbers wrong. My ADC outputs a signed 18-bit number. I treat the ADC output as a fixed point decimal with one integer (the sign bit, MSb) and 17 fractional bits. I repr...
Let $x(t)$ be a band-limited signal with spectrum (fourier transform) lying between -B and +B. Such a signal is not warped by an ideal low-pass filter with cut-off frequency equal or higher than +B. So, let's consider an ideal (vertical edges) low-pass filter whose spectrum is $H(f) = \mathrm{rect}(f/2B)$. It's shape i...
In my textbook, it is stated that for a discrete system, where the input and output are expressed by difference equations, to be causal, there needs to be initial rest. It is also stated that for the system to be linear, the initial conditions should all be zero. I understand why these cases are true, however (I have f...
I'm looking to compress multiple mono sound tracks together, as one track (with loads of channels), however, I was wondering if this is stupid - because I may lose out on real compression, as these algorithms are design to compress channels with some correlation. Also the each track is not actually audio, (and wont osc...
Description: I’m trying to use the standard sample rate of 61.44 MSPS on both sides of my digital transceiver(DUC and DDC), so I’ll upsample my data from baseband data rate 3.84 MSPS to 61.44 MSPS with a factor of 16 in DUC procedure and downsample the received 61.44 MSPS by a factor of 8 to 7.68 MSPS (the ADC and DAC ...
I have old homework and solution of that but i didn't understand actually solution. Because i didn't see continous-time fourier transform formula for that. $g(t)$=$\frac{1}{j\pi*t}$ and it asks fourier transform of that. This is table which i try to find for solution, but i didn't see any formula for the above type:
In the design of practical FIR and IIR filters using difference equations, what is the range of coefficients that is employed for practical filters. How many orders might be used? What might the range of coefficients be?
I have the following problem when I graph the phase of my transfer function in matlab I get that it starts at 360 while with wolfram it gives me 0 and if I do the calculation that is in astromurray it gives me that the system also starts at 0, a that this difference is due, what would be the correct diagram. From alrea...
I want to know how calculate the frequency noise from phase noise. More clearly calculation of frequency noise spectral density from phase noise spectral density. Please explain deeply how the relationship came ( mathamatics).
I have the following rather simple problem and unfortunately I am not getting forward. Imagine a simple 2D image with pixels and a unique value for each pixel of the image. For example, let the image be 512x512 pixels. The size of the image is given by 10 nm x 10 nm. Since I want to view the image in frequency space, I...
I do not understand why this scipy operation: from scipy import signal as sg import numpy as np fs = 48000 order = 4 # create bandpass from 100Hz to 200Hz: sos_test = sg.butter(N=order, Wn=np.array([100, 200]) / (fs / 2), btype='bandpass', analog=False,...
I am studying on a project which my supervisor gave me this semester. It has multiple steps. Basically, I have my own audio. I added AWGN to this sound using awgn() method. SNR is 30. I am trying filters to filter noise in my sound. What i have done so far is: [sound,Fs] = audioread('C:\Users\Lenovo\Desktop\sound.m4a')...
The question is: how can I define $h_1[n]$ in such a way that $h [ n ] = \delta [n - 1 ] + 2 \delta [n -2 ] + h_ 1 [n]$ is a band-pass filter. My thought was the following. Firstable, I wrote the $Z$-transform as $\displaystyle{H (z) = H_ 1 ( z) + z^ {-1} +2z^ {-2} = \frac{z^ 2 H_1 ( z) + z + 2 }{z ^ 2 }}$. Then I thou...
I am trying to calculate the step response of the following given: Should I use Laplace transform or Fourier transform?
So my question is here: How to transform the function $\delta(5t)$? I know that this function when is transformed on Fourier it will be $1$, but the $\delta(5t)$ is going to be and this $1$ or something else?
As long as I know, the cyclic auto-correlation is defined as: $$R_x^\alpha\left(\tau\right)=\lim_{\Delta t\rightarrow\infty}\frac{1}{\Delta t}\int_{-\Delta t/2}^{\Delta t/2}x\left(t-\frac{\tau}{2}\right)x^*\left(t+\frac{\tau}{2}\right)e^{-2\pi j\alpha t}dt$$ and the cyclic spectrum is defined as: $$S^\alpha_x\left(f...
I have a requirement to detect/reduce sidetalk/background noise in real-time audio. I am stuck in how can I detect this from audio time-frequency domain analysis. I am already getting the time-freq data from stft (I am using java for an easier way to integrate with our project). Can I do this without any machine/deep l...
Rip Van Winkle here -- is the fastest and least-footprint way to compute an arctan on an FPGA still to use CORDIC? Or is there a way to leverage block RAM and DSP blocks to speed and/or reduce the size of the process?
Is $h[0] \neq 0$ a sufficient condition for the invertibility of a discrete, LTI, causal system? Can we get to similar results (i.e. get to some other sufficient condition(s)) for noncausal or anticausal systems?
I did a Discrete time Fourier transform of the following signal: $$x[1]=4\quad x[-1]=-4$$ The result is $$4e^{j\omega}-4e^{-j\omega}$$ We were supposed to draw the magnitude and phase graph of this complex function. Firstly, I turned it into complex sine using $\sin(\alpha)=\frac{e^{j\alpha}-e^{-j\alpha}}{2j}$: $$4e^{j...
I am having a hard time to grasp how overlap save is exactly working in contrast to overlap add. The starting of both procedure seem pretty similar. Both algorithms are trimming the input series $x[k]$ into pieces of length $L$ and then do a partial circular convolution with the impulse response $h[n]$. The convolution...
I am having an issue which I cannot understand completely. I am working on a simple project where I am testing various algorithms from the family of the Generalised Cross Correlation [GCC] for Direction-of-Arrival [DoA] estimation (actually it's Time-Difference-of-Arrival [TDoA] estimation but in the end the angle of i...
I understand that there is a the Timbre but I don't really understand how can I use it to differ them from each other and actually don't understand what is a Timbre, is it a graph? Is it a number that I can calculate? How do I describe it? Because I need to write a python code that recognizes which instrument is played...
I need to compare between 2 signals that both of them are different notes of the same musical instrument, so I thought maybe I can do it by Cross-Correlation but I dont really understand how to do it and how does it work?
I have a small robot (4tronix MARS Rover) and have added a MPU9250 unit which includes accelerometer (and gyro and magnetometer). I have calibrated it to determine offsets in a static situation. My hope was to measure acceleration when it starts moving and integrated that to velocity and then integrated that to displac...
I am doing an exercise where I'm supposed to decide if a system is stable or not. The output is given by $y[n] = x[n- 1 ] + u [n + 2 ]$, with $u[n]$ the Heaviside step function. I know that a system is stable if and only if the impulse response is absolutely summable. So, since the impulse response is $h[n] = \delta[ n...
I have an (audio) signal. I am applying STFT continuously and after applying a certain magnitude threshold I am doing inverse STFT to reconstruct the signal. But I am getting some unwanted mini noise spikes during the whole reconstructed audio. In the time-freq domain, I just zeroed the value if it surpasses a certain ...
I understand why FM is preferred for music: noise is mostly amplitude modulated, FM yields much higher fidelity. I also understand why commercial FM signals have a much larger bandwidth than commercial AM signals: the signal spectra of the former are 5-10 times wider than the latter. I also understand the mathematics...
I apply ifft after fft, but the result is not the same (x-fft(ifft(x)) is different from zero)? Where is the mistake?
Norm not preserved in MATLAB after fft; see: signal=randn(1024,1)+i*randn(1024,1); abs(fft(signal)).^2-abs(fft(exp(-1i).*signal)).^2 gives result different from zero
I've struggled to find any literature explaining this, so here's hoping someone can help out. I work in a subfield of MRI where the data that we collect is 4D (3D spatial and 1D temporal). Due to certain hardware (and participant) constraints, it is frequently the case that the data we collect is spatially anisotropic....
Background I am analyzing robot manipulator trajectories generated by different methods. One quality that I am interested in is how "smooth" the tool point moves along those trajectories. Now, let's say I have two trajectories of the same robot executing the same tasks, but the trajectories have been generated by diffe...
A post explains that the cross correlation of two signals can be given by $$\mathcal{F}^{-1} \left\{\mathcal{F}\left\{x(t) \right\} \mathcal{F}\left\{y(t) \right\}^* \right\}$$ Does this generalize to a cross-correlation of multiple signals in the form in Equation $(1)$? $$\mathcal{F}^{-1} \left\{\mathcal{F}\left\{x(t)...
I'm trying to work out a way to demodulate series of amplitude data points in python. The original data consisted of a total of 360 bits which is now contained in slightly under 720 samples (the signal starts with a clock run-in of "10101010"). My questions are: What methods in python would be appropriate to retriev...
I have a time series of measurements which I want to high pass with Butterworth filter. Python scipy package has a built in function for Butterworth filter (signal.butter) and I know how to apply it to the data in the time domain. Let's say that x is my data with sampling frequency fs and a vector of time stamps t. I c...
I am trying to add a Additive White Gaussian Noise (AWGN) to a signal whose mean is 0.5. I am working with OFDM for Li-Fi communications whose signal must be real and positive. Normally, The AWGN is added to the signal $X$ (which represents the output of the iFFT operation, Let's consider the ACO-OFDM for this case whe...
I would like to know whether there is any LTI system that does not have state-space representation, but do have a convolution representation. and vice-versa. Can you name some examples for me to research further on this?
I'm trying to design an FIR filter with gain = 1 on DSP processor that does not support floating representation. I'm using MATLAB to design the filter and then transport the taps into my code. The problem is that MATLAB returns floating point coefficients that are not compatible with my requirements. of course I tried ...
I want to plot the FFT of a sine wave using matplotlib and I want to plot a single line at a frequency where the sine wave belongs. here's my code import numpy as np import matplotlib.pyplot as plt f = 3 t = np.arange(-np.pi, np.pi, 0.01) y = np.sin(2*np.pi*f*t) plt.subplot(2, 1, 1) plt.plot(t, y) ft = np.fft.fft...
i have equation like for example A(W) = isin(2pi*w) in frequency domain (it can be anything) that have arbitrary amplitude and phase response. i usually make symmetric structure in real part and asymmetric in imagine part and i do ifft to get real coefficient is it right? when i get filter coefficient like this. the ze...
The resolution of a window is typically defined by the width of its spectral mainlobe (3dB-width or null-to-null width). It is often stated that the rectangular window has the best resolution among all windows. In my work, I'd be looking for a reference where it is rigorously proved that there exists no window that has...
I have a homework question which is: A typical telephone channel has the bandwidth of 3100 Hz can support dial-up modems that can variable speeds depending on the quality of the links on both ends of the data call. a) (5 points) Assuming the dial-up modem is working at rate of 33.6 kb/s, compute the minimum needed E...
I'm studying how to solve linear constant coefficients difference equations but I have some troubles with a step of the procedure. Consider the system \begin{equation} \begin{cases} y[n]+y[n-1]-6 y[n-2]=x[n] \\ y[-1]=1 \\ y[-2]=-1 \end{cases} \end{equation} Firstable, I stated that $y[n]= y_p [n] + y_h[h]$, that is the...
I am new to EEG signal processing and I am having some issues on calculating PSD using scipy.signal.welch. I am trying to implement a function to extract PSD features. The input of this function is a NumPy array called trials. Trials is a 3D array that contains EEG data in this form: (trials x time x channels) and I ne...
The title already sums up my question pretty well: I've got a pretty accurate 3d model of some object. This object is usually non-convex and it also may have some holes etc. This object is placed (translation & rotation) into some position and pictures are taken from specific positions and angles. Since I got extrinsi...
My question is quite similar to this one but I believe it is slightly different, which is why I am posting a new question. Given an image in RGB format, I want to know if it is possible to simulate (at least approximately) how the image would look like if a chromatic filter had been used on the lens when the picture wa...
Cheers, I am given the input signal of $x(t) = A \cos(2πft + \frac{\pi}{4})$ which is linear and time invariant, and I am asked to find the output, if I know that, $f = 500hz$ and $|H(f)| = 1, \angle H(f) = \frac{\pi}{4}$ What I know, is that when given an exponential input, I can compute the output as $x(t) = A e^{j\o...
I am trying to develop an application which will need a bandpass filter. The sampling rate is 30Hz, and the frequency range I'd like the filter to preserve is: 0.5Hz-4Hz. I've used mkfilter to design my own filter but it is consistently being outperformed by this other filter I found in a sample project on github. T...
I'm trying to study what differentiates different instruments in terms of frequencies, timbre, etc. By studying a few different samples of notes, I've come to the conclusion that for flutes the fundamental frequency is also the dominant one, and for piano that's not true. Is this conclusion correct?
I have a time series for which I want to apply a continuous wavelet transform and plot the scalogram, where the scalogram is frequency on the y axis and time on the x axis. I'm using pywt's cwt (docs), and the outputs are numpy arrays of the coefficients and the frequencies. I understand that the rows in the coefficien...
I made a spectograpm in C that takes in a wav file (44.1kHz), converts it to 8bit pcm(can't go higher because of memory constraints) and does 1024 sample FFT on a number of bins, using Welch method. I applied the Hamming window in the time domain. In the end all bins are averaged out, converted to a decibel scale, and ...
I will do anything to get help. Please help me find a solution. I can safely say that my fft algorithm, implemented with pyfftw, works as intended when a sine wave with a certain frequency is passed. Now: I want to analyze the gray variations of a video, every circa 5 seconds. I know for a fact that the signal inside t...
I need to find the transfer function of the second order FIR filter. I searched a lot in the standard textbooks, but I could not get the mathematical expressions and derivations. I want that the zeros positioned at $z_{1,2} = r(w_{0})e^{jw_0} $ where $ r(w_{0}) = (1-b + b\cos(w_{0})) $ where, $ b \in [0.5,1] $, $ w_{0}...
i'm doing overlap save method in frequency domain. i make hankel function to digital filter using frequency sampling method(to make arbitrary magnitude phase filter). and i do ifft and zero padding fft i heard that if the filter is non-causal, zero padding fft have gibb's phenomenon. my filter have same problem. i'm do...
I confuse about the implementation of the FIR filter with no poles. If the transfer function is given in the form $$ H(z) = 1+az^{-1}+bz^{-2} $$ direct form implementation is just delay operator followed by the coefficiens. There is no problem with that, but how about $$ H(z) = z^{2} + az^{1} + b $$ Multiplying and di...
I am reading Wireless Communications by Andrea Goldsmith. There the author mentions that for narrow band channel the received signal can be given as: $$r(t)=\text{Re} \left\{u(t)\text{exp}(j2\pi f_ct)\left(\sum_{n}\alpha_n(t)\text{exp}(-j\phi_n(t))\right) \right\}$$ where $u(t)$ is the low pass equivalent signal for $s...
I am using fmcw radar to find out distance and speed of moving objects using stm32l476 microcontroller. I transmit the modulation signal as sawtooth waveform and I read the recieved signal in the digital form using ADC function available. Then, I copy this recieved ADC data into fft_in array(converting it into float32...
I am given the distance from the source of radiation of the harmonic oscillation to the point of observation $R$ and signal frequency $f$. I need to find the phase shift due to this distance. When calculated using this formula, the signal phase shift exceeds the maximum $2\pi$. $$\Delta\varphi=\frac{R\cdot 2\pi}{\lambd...
Studying for my finals in Image Processing. Trying to solve the following question: An image processing specialist recommended an algorithm for Edge Detection in a color image RGB. He argued that it was unnecessary to switch to a different color model. You can calculate the gradient in each of the three images R, G an...
I need to compute the Fourier transform o the time derivative of the autocorrelation function (ACF) of a discrete signal with sign changed. Lets call it $Y(\omega)$. I had some computations problems due to noise and seasonality. In order to solve those issues using existing libraries, I employed methods that gave me th...
this is doing my nut in. I need to define u in the following equation (there is a lot more to it but this is a sample): $$G(x,x',z,z') = \int_{-\infty}^{\infty} \exp\left(-ju(x'-x)\right)exp(-jk|z-z'|) \,du$$ I know that there is no perfect solution, so i need to create a numerical approximation using the inverse fouri...
I was calculating the Allan deviation (utilizing the Python module allantools.adev, which relies on eq. (6) in https://tsapps.nist.gov/publication/get_pdf.cfm?pub_id=50505). The expected behavior is a linear decrease as the system exhibits white frequency noise: This expected linear decrease can be observed up to an a...
I have 2D convolution with a large input image (512x1920). I am trying to partition the image across height and width to perform this convolution as N pieces. This would involve having an intersection between each sub-slice of the input image. I would like to understand how to calculate this intersection for various si...
I am doing STFT (short-time Fourier transform) on real-time audio to filter frequencies by magnitudes (to reduce noise) which have certain drawbacks like noise spikes in reconstructed audio in the time domain. I found that I have to zero pad and try square root hann window to minimize the effects of frequency filtering...
I have a audio recording piece of an environment that contains multiple sounds, is there a way to separate the different frequencies or wavelengths of this signal with Python or matlab?