instruction
stringlengths
31
27k
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?
if i have linear filter that operate in frequency domain filter length is L (Overlap and save method) if there is no computational time, i get L input signal and fft and multiply filter and ifft the output is L sample after L time index in this case, i think the frequency domain filter could be non-causal filter becaus...
Understanding the result of the fft algorithm. I need help understanding the FFT calculation results. Recently, I have been interested in signal analysis, so I have created and understood fft algorithms. My specific questions are as follows. When the complex number, which is the result of the fft transformation, is dis...
I'm planning to acquire between 50k and 200k image per day with a 50MPixels (or 68MPixels or 130MPixels) sensor; I'll be acquiring the raw data (10 or 12 or 14 bits) from the sensor through SLVS-EC and create a raw file of my own design. The raw bitrate from the sensor may go up to 75.2 Gbps. I may have to store 50k-25...
I'm trying to solve the following question: Given an image at a resolution of $N \times N$. Describe an algorithm that enlarges the image to a resolution of $2N \times 2N$ using DFT operations. As I understand, we need to use the DFT, split it into four sections and add zero padding and then perform IDFT (it was ment...
Subspace frequency estimation methods like MUSIC or ESPRIT decompose the signal correlation matrix into a signal and a noise subspace. Assume the signal model is given by $$\boldsymbol{s} = \boldsymbol{H}(\boldsymbol{f})\boldsymbol{a} + \boldsymbol{n}$$ where $\boldsymbol{s} \in \mathbb{C}^{M \times 1}$ contains the ob...
I am trying to create a random signal in GNU Radio (using DVB-S2 specs for the physical layer) and transmit this signal using a USRP X310. This is shown below: Problem: I would like to be able to control the Es/No of this signal, as well as the symbol rate, but I don't know how. I'm brand new to DSP, so any help is ap...
Like the title. We already know $x[n]$ and $h[n]$ are the discrete time signal of $x(t)$ and $h(t)$ respectively, which are continuous time signals. And also $x(t)*h(t)=y(t)$, $x[n]*h[n]=y[n]$. Prove that $y[n]$ is the discrete time signal of $y(t)$.
I'm trying to generate phase data from magnitude data in a frequency function, assuming the system is minimum phase. Using Hilbert Transform. For instance, having this simple system: $G(s) = s$ $G(j\omega) = j\omega$ Magnitude is: $|G(j \omega)| = |j \omega| = \omega$ And phase is: $\arg[G(j\omega)] = \arg[j\omega] = \...
Let's assume we have a carrier at $f_{c}$, and a message at $f_{m}$ ($f_{c} \gg f_{m}$). Amplitude modulation is used to modulate the message on the carrier. Let's call the modulated carrier $\text{rf}(t)$. At the receiver, we first have the antenna, followed by a polyphase filter, which creates an I and Q channel: $$ ...
Suppose I have a very low frequency pattern of sound. For example a 10 second music file. Then 10 seconds of silence. Then the same 10 second music file repeated again. The whole sequence repeats every 20 seconds so it would make sense to say it has frequency 1/20 Hz. The pattern is being played in the presence of a lo...
In the book “Fundamentals of Wireless communication”by Tse and Vishwanath, Can someone help with the how the integration helps derive equation 3.8 ? The equation is $$ p_e= \mathbb P\left\{\left\lvert y[1] \right\rvert^2 > \left\lvert y[0]\right\rvert^2\mathbf x_A\right\} = \left[ 2+\frac{a^2}{N_0} \right]^{-1}. $$
Injecting a sinusoid say, $Z = A \sin(k_x X + k_y Y - \omega t)$, $K = 2 \pi f/c$, for example, assume $f = 10$ Hz or $50$ Hz, and $c = 50$ m/s, now if I draw the 2D K-space plot with the following script n=40 f = 50 # Temporal frequency in Hz c = 50 # wave speed 50 m/s k = 2.0 * np.pi * f / c # wavenumber kx = n...
I was trying to solve the following question: Calculate the DFT of the given filter impulse response $h(n,m)$. Based on the result, determine if the given filter is a high-pass or a low-pass filter. In the solution they proved that: $$ H(k,l)=\sum_{m=-1}^{1}\sum_{n=-1}^{1}h(m,n)e^{-i2\pi\left(\frac{m}{3}k+\frac{n}{...
I have been using scipy to analyze filter performance for a single-pole IIR filter, and I noticed a disagreement between the phase in the outputs of the freqz() function compared to the output of the dfreqresp() function for the same system. The transfer function for this filter is: $$H(z) = \frac{b}{1-az^{-1}}$$ Accor...
i'm doing realtime signal processing simulation. it could be simple question. if i multiply input L sample fft and M block filter in frequency domain and i do ifft the output come out when index is L+1+M/2 ??
I am looking at an online document on optimal beam-forming methods: https://www.comm.utoronto.ca/~rsadve/Notes/BeamForming.pdf (sorry I could not find author info from the pdf). One of the strategies to find optimal beam-forming weights W is to use gradient descent for minimal output energy, while keeping the beam form...
I am trying to find the one-dimensional velocity of a car based on position measurements, similar to the Wikipedia article. The car moves at almost constant speed and I am mostly interested in getting smooth velocity estimates. My problem is that while the sensor usually gives good values, sometimes there are strong o...
Cheers, I have a response function of: $$H(\omega) = \begin{cases} \frac{1}{2}j\omega, |\omega| < \omega_c \\ 0, \text{elsewhere}\end{cases},$$ and I am asked to find draw its magnitude and phase. For the phase function, my professor rewrote this as: $H(\omega)= \frac{1}{2}\omega e^{j\frac{\pi}{2}} \Pi(\frac{\omega }{2...
I have a filter/LTI system frequency response in form of list of values in the frequency domain. I want to get the phase curve/data from magnitude data. Input data can have either linear spaced points or log spaced points, in the frequency domain. Data is like following table: Freq (Hz) Gain (dB) 512.588 -1.0...
I am a DSP beginner. I have some audio frequency response (actually acoustic, especially speaker frequency response by the way) curves and I'm trying to fitting them by IIR filters using MATLAB's invfreqz. The curves I have are just magnitude data and I use JOS's method to compute the minimum phase in addition to magni...
I am doing some preliminary tests to check the behaviour of two USRPs. The setup is simply an USRP B210 connected via cable to a N310. The B210 is sending a constant 1 at 2,48 GHz, the N310 is just receiving and saving the data to a file, both USRPs operating at a sample rate of 25,6 MHz. As expected, one can see the c...
Q1: Can anyone give a further explanation on this sentence? Each time $f_o$ is a multiple of $F_s$, the argument of the exponential is a multiple of $2\pi$ Q2: - must $f_o$ be a multiple of $F_s$?
Cheers, I have a impulse response that looks like this: $h(t) = h_1(t) \cdot \cos(8 \pi t)$ and I have to find its frequency response. In order to achieve this I am trying to use the fact that $$x(t)y(t) \to \frac{1}{2\pi} [X(\omega) \ast Y(\omega)]$$. Using that I end up with $$\mathbb{F}\{ h_1(t) \cdot \cos(\omega_0 ...
#Code from https://stackoverflow.com/questions/70768384/right-method-for-finding-2-d-spatial-spectrum-from-cross-spectral-densities I've an array of seismic sensors (say, N=34). Every sensor collect the seismic data. At first, I've found the cross spectral densities (csd) from the every possible pair of seismic sensor,...
Related to The Proper Way to Do Sinc Upsampling (DFT Upsampling) for Uniformly Sampled Discrete Signals with Finite Number of Samples, how can one apply Sinc upsampling in the DFT / FFT domain for a 2D signal? What are considerations when implementing it in MATLAB?
Consider a signal $x=s+n$ where s is the desired signal and n is the noise we want to remove. If we know that noise is just low frequency we can remove noise by designing a low pass filter say $w$ and then recover the estimated $s_e$ by performing convolution between $s_e=x*w$. The question is can we get the estimated ...
I have a bunch of samples some of which are loopable [1]. I'm searching for a methodology to programmatically detect them. Any paper or approach is welcomed. Thanks. [1] https://www.wikiwand.com/en/Loop_(music)
x is a vector of length 1000 that contains the samples of the signal; n is equal to 16 that its the number of bits of each sample; fa=256 Hz (sampling frequency); Xf = fft(x); stem(0 : 99; abs(Xf(1 : 100))) And them i get this graph. How can i write the x-axis in hertz? How can i prove that the signal that originate ...
If you define an LTI system sys in scipy, you may conveniently feed an input x to it to get its output y as follows: from scipy import signal import numpy as np import matplotlib.pyplot as plt # let's define as mass-damper-spring system: # x'' + beta x' + w0**2 x = F/m m = 10 w0 = 20*2*np.pi beta = 1.5 fs = 500 # sa...
Assume we have a uniform linear array (ULA) with N elements. We wish to compare the performance of a tapered (let us presume Taylor 4-bar, -30dB side-lobe) array to an un-tapered array. Let the taper vector be w. Assume that the taper functions are normalized such that sum(w)=1. With that constraint, the directivit...
I'm hoping to improve the results of a simple application I've been working on, which aims to isolate as fully as possible the electric guitar heard (along with drums/bass/vocals) on a single track of a commercially available 5.1 mix. It was inspired by the observation that simply inverting the content of another track...
So I have a simulation to get Fourier Transform of an given array. This is my Python code to get Fourier Transform import numpy as np import matplotlib.pyplot as plt import scipy.signal as signal w1=np.arange(-2*np.pi,2*np.pi,0.01) x = np.array([1,2,3,4,3,2,1]) #fourier transform s=0 for n in range(len(x)-1): s=...
The question is to design a Low Pass Butterworth IIR Digital filter. The following code below has the specifications with $A_p$ being the passband attenuation, $A_s$ the stop band attenuation, $f_{pb}$ is the passband frequency and $f_{sb}$ is the stop band frequency. $f_s$ is the sampling frequency all in Hz. I do not...
I have this signal $m(t)=8\sin(9\pi t)\sin(8\pi t)$, my teacher gave as explain $2\sin x \sin y=\cos(x-y)-\cos(x+y)$. So how to create and get this signal $m(t)=a\cdot\cos(2\pi f_c t)$.