instruction
stringlengths
31
27k
I am looking for a method to generate two binary sequences of length $N$ with the following properties: Very good cross-correlation for all shifts. Good enough autocorrelation for all shifts except zero delay (good enough means $\gg 1$ and $\ll N$). I can even relax the constraint on the cross-correlation as follows:...
If we take Z-transform of a signal & find its ROC. How to use this ROC? There are infinite signals in ROC, suppose we choose any signal from ROC, what to do with it?
I need to model the relationship between the DCT and DFT transforms (If it exists). I mean real signal $x \to y = \textrm{DCT}(x) \to z = \textrm{DFT}(y)$, so I need to get the relationship between the $x$ and $z$ if possible. For more details: Assume I have a real signal $x[m],\ m=1,2,….N$, the $N$-point IDCT transfor...
I'm trying to do some image processing to improve the image below but I'm having some trouble. I already tried to do histogram equalization followed by laplace sharpening, I tried to implement a buttersworth high pass filter but the image became all black. Do you have any suggestions on what techniques to use ti improv...
I am working on a soft iterative receiver for an M-ary modulation. Since my constellations, M=2⁷ — M=2¹², are rather big, the log likelihood ratios also become large. Is there a way to compress these values to a smaller range, e.g. from [-100, 100] to [-10,10]? Momentarily, I am rescaling the values to fit them in my d...
For example, if I have a mixed signal composed of signal A added to signal B, and I know that the histogram of signal A is non-Gaussian in the time domain, and that the histogram of signal B is Gaussian in the time domain, is there a way to isolate either A or B using this information? I understand that I can use MLE o...
In the image, the signal is a pseudorandom sequence with values oscillating between -1 and +1. It is periodic (in this case with period 0.001). I don't see how the sequence yields a fourier transform whose real and imaginary parts are given on the right side. Any help on how to compute this would be really appreciated....
I am trying to implement some code to firstly generate an Octave-Band and Fractional-Octave Band filter. I have used MATLAB's octaveFilter method to generate compliant Class-1 and Class-0, 1/1 and 1/3 Octave band filters, but I want to understand how to design these filters from scratch so I can better understand thei...
How could i go throw proving that this system $y(t)=\int_{-\infty}^{t}e^{-(t-\tau)}x(\tau)d\tau$ is invertible system or not ?
This diagram again. This is clearly not the shape of $\log_2(1+SNR)$ but I very frequently see this instead of this: But this is also a stupid diagram because it doesn't cross at the origin. Also why do the modulation techniques veer away from $\log_2(1+SNR)$, they should stay on the curve and then get suddenly cappe...
My task is to generate finite number of samples and save it to the file. For that purpose I used head block but after setting the run option to: Run to Completion, the flowgraph doesn't stop, just hanging. Any idea how to force my flowgraph to stop after certain amount of samples is written to the file?
The asymptotic phase behavior of an RHP zero is from 0 degrees to -90°, the mirror of an LHP zero. Graphically, I'm confused about why this is the case and the phase is not from +180° to +90°. See the below image for my reasoning/confusion. Is the angle definition not consistent?
I have a signal x[n], that is sum of two sinusoidal signals. $x(t)=sin(2100t)+0.7cos(2500t)$ fs = 5000; %sampling frequency N=250; %number of samples for 50ms time portion ts=1/fs; %time interval between samples t = linspace(0,0.05,N);%time domain from 0 to 0.05s(50ms) with 250 samples x = sin(2*pi*100*t)+0.7*c...
I did a FIR filter hardware implementation with 80 taps (FPGA/VHDL). I will use it later as the decimation filter. My questions: Does the number of taps affect a cost of implementation of FIR? FIR filters belong to the class of linear filters, the combination of N lower order filters can create the ...
To recover the original signal when compressive sensing is used, we get an error, to avoid the error, we need to modify the l1eq_pd.m file. How to go about it? Where can I get this file in Matlab?
I am trying to evaluate the performance of an AEC by comparing the i/p and output wav file. I want to calculate echo return loss enhancement to predict how much(db) echo has been attenuated but i am not sure what would be right approach for that or is it possible or not, can we calculate in python?
I'm trying to design a filter to restore the original signal from strong noise (low SNR). I have tried low pass FIR and it could work well as the amplitude of original signal is much higher than the background noise. My matlab code of a demo are as follows: clear clc close all time = 1:10000; fre1 = 50; fs = 8000; amp...
I have a Sine wave at frequency F1. This signal changes and shifts to frequency F2. In frequency domain I like to find this shift as quickly as possible. (Signal has a lot of random noise and hard to Observe in time domain) What is the best approach ? I have tried various FFT chunk sizes and zero padded approaches but ...
I am reading communication systems, and have a doubt: Is it possible to generate signals in reality that have a non-symmetric magnitude spectrum in the Fourier domain? For example, if I have a signal $$u(f)$$ or something like this as Fourier domain representation I know that their Inverse Fourier transform is going t...
check time variance of this system $$y (t) = x(\frac{t}{3})$$ my solution $$y_1(t) = x_1(t/3)\\ y_2(t) = x_2(t)= x_1(\dfrac{t}{3}-t_o)$$ where $$ x_2(t) = x_1(t-t_o)\\ y_1(t - t_o) = x_1(\dfrac{t-t_o}{3}) \ne y_2(t)$$ is this correct?
I'm working on studying an endangered language and have the following problem: while I already have labeled exactly what the speakers I worked with have said at given timesteps on the word level and I know what possible lists of sounds/phones/letters can make up the word, I need a way to automatically detect the bounda...
I'm trying to filter this $g(x,y)$ WGN added image My Wiener filter is: $$H(u,v) = \frac{P_{f}}{P_{f}+P_{n}}$$ Where the image power spectral density $P_{x}$ is estimated as $\frac{|X(u,v|^{2}}{N^{2}}$, $X$ being the FFT and $N^{2}$ its size. Since image and noise are uncorrelated $P_{g} = P_{f}+P_{n}$, thus $H(u,v) = ...
I am new to signal processing. I have a 3 axis MEMS accelerometer. I have read its output into $\mbox{Matlab}^{\tt TM}$. My problem is that the signal I am trying to isolate has a frequency of about 0.2Hz, but in the frequency spectrum there are no peaks in this region, there are only peaks in the region <0.1Hz. The OD...
I have some acceleration values from a sensor. These values are reported as x, y and z components of the acceleration. As can be seen in the attached figure, it is clear that the z signal has a clear sinusoidal curve present. Is there any algorithm to quantify the "sinusoidalness" of a curve. I am trying to write an al...
I'm trying to develop an automated state-detection algorithm, basically expanding on MatLab's "statelevels" function to multiple (i.e. 3+) states, however I've hit a brick wall in trying to figure out how to define histogram bin edges without prior knowledge of the signal and have not been able to find any literature w...
What are the fundamental differences between speech and music in the frequency domain? I can think mainly of features in the time domain that can differentiate speech from music signals, e.g. short silences [Wolfe2002Speech]. Maybe fundamental frequency could be used for distinguishing speech from music? If yes then wh...
In UltraSound imaging, after beam-forming and obtaining the envelope, Log-compression which is a non-linear operation and scan conversion which is a 2D interpolation (with inherent down-sampling) is performed. I was wondering what would be the correct order of log-compression as a nonlinear operation and the 2D interpo...
If a musician (or a vocal coach) hears a human voice at a certain note, he/she can easily find the same note on piano. Not only for human voice, if the waveform is square, or created with a synth, they will be able to figure out which note it is. However, using DFT (or FFT) gives mixed results for any waveform other th...
I want to find the output signal(y) from input signal(x) and impulse response(h). To do that first I take the fft of both x and h, then multiply them, and finally taking the ifft of the result. The input signal is a 5 second sound. I tried to equalize the lengths of the FFTs but it didnt work. How can I overcome this? ...
The Fourier transform of $x(t)=\operatorname{rect}(t)$ is $X(f)=\operatorname{sinc}(f)$ The Fourier transform of a periodic train of rectangular pulses $x(t)=\sum\limits_{n=-\infty}^{\infty}\operatorname{rect}(t-n)$ is a sampled sinc: Picture taken from here. From a math point of view it is fine because: The periodi...
I was wondering if it is possible to use windows of varying lengths when making a spectrogram based on the short-time Fourier transform (STFT). That is, for higher frequencies I would use shorter windows so that I get higher temporal resolution at the cost of poor spectral resolution. I understand this method will resu...
Regarding when you 'compress' the signal, I typically see diagrams like this: And the companding curve: I can only see how the companding curve achieves a higher average SQNR by rounding down higher amplitudes more than lower amplitudes when making the quantization, according to a normal PDF, making the quantisation ...
After a year of listening to people talk through face masks, it appeared to me that the sound is not merely muffled, but it has a very specific and recognizable tinge and texture to it. It reminds me less of sound through a muffling pillow, and more of old speech recordings from the 1950s. This is apparent whether you ...
Background I set up a conventional Kalman filter that makes use of smartphone GPS only (no inertial sensors). That is, it uses the position, doppler speed, and course, in order to create positions that represent a more accurate track. When the device is stationary (i.e. the smartphone is placed on a table), the GPS dri...
I'm trying to convert sawtooth wave calculation formula to Octave/Matlab language. Here are the original formulas. My Desmos take is here. I've got formulas for triangle wave and square wave working but, sawtooth won't work in either way like showed in Desmos sheet (two last formulas there). Here's my Octave code (acti...
I'm trying to implement and discretize a notch filter (Chebyshev type I) these specifications: Ws = 2pi[2000 2500]; Wp = 2pi[1000 7000]; Rp = 0.5; Rs = 40; But when I try to use discretization methods, Tustin has a weird phase graph, and ZOH has also a weird behaviour. I couldn't find anything online that would explain...
I find myself to be quite confused by some concepts of DFT. Suppose I have some spectrum-normalized signal (which I simply receive without any prior information) $$A\cos\left(0.5n\right)\ +\ B\cos\left(0.7n\right)\ +\ C\cos\left(1.2n\right)\ +\ D$$ with A,B,C,D being some constants Now I find that the DFT of the same s...
I have a event record from acceleration censer. I'm trying to remove gravity from the event record by low/high pass filter as following site shows. https://developer.android.com/reference/android/hardware/SensorEvent#values As the first step I tried to extract Gravity by using following formula as a low pass filter. G[...
we are told to find coefficients and impulse response of IIR filter of order of 6. There are 6 zeros and 6 poles in the design. Pole and zero pairs are conjugate and poles are within the unit circle whereas zeros are on the unit circle and. I can write transfer function with no problem, but I cannot expand it as its or...
I have been implementing discrete PI controller in the incremental (velocity) form in C++. I have been looking for the anti-windup mechanism. One idea which I have can be described by following pseudocode: integral_gain = proportional_gain*sampling_period/(2*integral_time_constant); // e(k) error = referen...
as you know it is possible to measure the power spectral density ($|X(f)|^2$) of a certain voltage signal $x(t)$ through a Spectrum Analyzer. As far as I'm concerned, the simplest spectrum analyzer does not perform the Fourier transform X(f) of the input signal to evaluate the power spectral density. On the contrary, i...
I am fairly new to GNURadio. I am trying to generate a 2FSK with minimum frequency shift. Instead of multiplying with a 8MHz complex carrier, I directly use VCO to generate two frequencies. One at 7.5MHz and the other at 8.5MHz. At the output, QT Gui Frequency Sink shows these two frequencies. I have attached my flow g...
I'm struggling with fully understanding the concept behind a Kalman filter. For the sake of simplicity, let's ingore the input variable $u$ and assume constant process $Q$ and measurement noise $R$. We can now predict the new state by using the state transition matrix $F$ and the old state estimation $$x^-_k = Fx_{k-1}...
This is for one of my fish tanks, which has dimmable LED lights. It's a bit of an experiment where I'd like to see what'll happen if the "sun" above the tank "rises" and "sets" in relation to the actual sun, as in, that glowing ball of fire in the sky. To that end I've hooked them up to a microcontroller reading a ligh...
I am trying to understand intuitively the fft of a signal that changes in frequency in time. Suppose I have the fft of a linear chirp signal sampled at 1 kHz for 2 seconds. The instantaneous frequency is 100 Hz at t = 0 and crosses 200 Hz at t = 1 second. Using matlab, I have the following magnitude spectrum plot: t1 =...
How could one use the Total Variation frame work to solve the Deblurring problem? Specifically using the ADMM as a solver. One could assume the blurring operator is known, linear and shift invariant. What are the advantages of the TV approach? What are the disadvantages? This is a continuation of How to Solve Image Den...
Regarding white (uncorrelated) and coloured (correlated) timing jitter. I know that for free-running oscillators (such as VCOs), various kinds of noise causes the jitter, for example (1/f) coloured noise and white noise...As a result, the jitter is expected to be coloured in oscillators because the phase noise power sp...
I have successfully built Simulation example: FSK. Everything works fine and I'm getting same results as in example. For the next step I would like to save demodulated binary data in file but I'm getting way too many samples per bit (maybe because of repeat block used in beginning of simulation?). How do I decimate su...
An magnitude estimate algorithm has been used for a while in which no multiplication is done. See link here: http://dspguru.com/dsp/tricks/magnitude-estimator. This method does have advantage in terms of complexity (I know CORDIC is more accurate but too much overhead in HW). Even though the error is small in the analy...
I have a question about the following codes for measuring analytic signal (Hilbert transform). Here,the time domain signal (x) is a real value signal. After making fft it becomes complex (X). Then it is multiplied by h (a real vector with the same size as X, and having real number in upper half and 0 in the bottom half...
Given a 2d spatial kernel $h$, I want to construct the corresponding frequency filter $H$. In theory, $H$ is simply obtained by calculating the DFT of $h$ using a FFT algorithm. But in practice, there are some considerations to be considered. First, if $H$ is used for filtering, zero-padding is required. Second, after ...
I am working with microcontroller's ADC to sample the data. I know that Nyquist criteria tells us that the sampling frequency should be at least twice the highest frequency, but it might involve aliasing effect hence producing a completely different signal. I need to capture signals at 9 KHz max frequency. Is there an...
I have the following for a filter with passbands having different gain levels, in this case I set the order arbitrarily to 100. Is there a way to find the minimum order that still satisfies the specifications? fpts = [0 0.2 0.3 0.5 0.52 1]; %frequency points mval = [0.3 0.3 1.0 1.0 0.7 0.7]; %magnitudes of frequency co...
I am going to implement in C++ software the synchronous frame phase locked loop (SFPLL) for estimation of angle and frequency of the three phase grid 220V/50Hz. For the internal PI controller setting I have decided to use the design by emulation method i.e. design the controller as if the system to be continuous, tran...
This is the FFT of a 4khz sin signal. I wonder why the negative part and positive part of X axis is not symmetrical? Amp = 0.3; freqHz = 4000; fsHz = 160000; dt = 1/fsHz; t = 0:dt:1600*dt; sine = Amp * sin(2*pi*freqHz*t); t = 0:1600 subplot(2,1,1) plot(t,sine) y1 = sine; Fs = 160000; % samples per s...
This is my first questions I am asking to this community! I want to understand how to create a Range-Doppler Map (RDM) for a phase/frequency coded radar return using an arbitrary waveform generator (AWFG). This application is very similar to Barker codes. In a linear frequency modulated (LFM) pulse-Doppler radar, a sin...
Correcting I/Q phase and amplitude imbalance using S.W. Ellingson method. https://www.faculty.ece.vt.edu/swe/argus/iqbal.pdf -- S.W. Ellingson Algorithm When I try to use the set of equations to manually determine the corrected I/Q values using the eqautions mentioned in the paper, the phasor of the measured signal rem...
I have a sound engine where I feed float PCM values between -1, +1. I am trying to make a noise generator. I want to be able to generate brown noise Mathematically as float PCM valaues so that I can put it in my engine and play it live. Example of Smooth Brown Noise. How is such noise generated Mathematically? Could an...
How would I differentiate betwee sibilant "sssh" voice sounds in a music track and a similar sounding instrument sounds like hi-hat or cymbals?
Given a segment of audio, if you were to calculate the histogram of frequency amplitudes for all standard musical note frequencies present in the audio, how would you check to see if 2-3 specific musical notes exist in the audio? This is a type of polyphonic detection, similar to this question. Except I'm not trying to...
I am trying to filter out large wiggles showing in a signal. Those wiggles are happening due to many signal processing layers and a final sine Fourier transform (no phase) Here's the python code i am using to compute the sine Fourier tranform def sine_f_transform(x, signal, nx): # x: the x axis vector in real dimen...
I now want a filter that has less of the frequencies to be cutoff. I would like a filter with 36, 48 or more decibels of rolloff Code public class BiquadFilter implements ISimpleFilter { // instance variables private double cutOffFrequency; private int sampleRate; private double resonance; priv...
I have a question that is that possible to wirelessly transfer lossless audio via Bluetooth? Please help me explain technical reasons behind it such as the size of the the lossless data, the maximum data rate of Bluetooth, or the delay of the wireless transmission, etc. If no, what aspects would we improve to be able t...
I read that one of the advantages of a complex baseband signal is that it can send more data over the same bandwidth as compared to real signal. Why is that so? If I think about it logically, doesn't complex number operations take more system resources since it has real and imaginary? For example, multiplying 2 complex...
I am trying to make a "noise generator" like Pioneer example here. I am using a smoothed brown noise and passing it to a bandpass filter to achieve this noise in C++. For smooth brown noise. I used Hilmars suggestion here. According to Hilmars answer here. I used []=[−1]+⋅(2∗()−1) and passed the resulting signal to a h...
We are supposed to write a code that will help us plot the following signal and their amplitude and phase spectrum. unit step exponential unit ramp sinc rectangular I believe I can scrap the code for displaying these signal, but I am not sure how do I create their Amplitude and Phase spectrum. I googled how to plot t...
Consider white gaussian noise $\omega(t)$ that has passed through and ideal lowpass filter with bandwidth $B$. This filter has the impulse response $$h(t) = 2B\text{sinc}(2Bt)$$ Sampling the filter output at time instants $t_1$ and $t_2$ yields two Gaussian random variables, $w_1$ and $w_2$ (with zero mean). I don't un...
Consider an LTI system with impulse response $h[k]$. Does the frequency response $H(e^{j\Omega})$ equal the eigenvalue corresponding to an eigensignal of frequency $\Omega$? So if I convolve an eigensignal $x[k]$ of the system with the impulse response $h[k]$, I get the $H(e^{j\Omega})$ (=Eigenvalue?) scaled eigensigna...
I need to choose some points on an image. These points should be chosen more where there is lots of color changes, transitions and variations. Which techniques can I use for determining where most color changes and transitions occur in an image?
I have to deal with multiple time series $X_n$ that are non-uniformly or irregularly sampled at increasing times $\Theta=\{t_k\}_{k\in \mathbb{Z}}$ ($ t_k<t_{k+1}$). In case this could help, this is an inherent unknown jitter: $t_k$ represents a real number from a unit-interval $[t_k,t_{k+1}[$. Moreover, there can be a...
I have a question regarding the ML estimation in presence of colored noise, i.e., Additive Colored Gaussian Noise. I want to implement this using a Viterbi algorithm, since I need to take the 'Correlation Matrix' into account. (Similar to https://dsp.stackexchange.com/a/50777/57695) The received signal is $ \mathbf{y} ...
I'm trying to plot the Laplace transform of a function. Here's my MatLab script clear clc syms t L = 100; sigma=(-10:0.1:(10-0.1)); omega = (-L/2:L/2-1)*(2*pi*0.1); x = sin(2 * pi * t); X_symbolic = laplace(x); X = matlabFunction(X_symbolic); result = []; for j=1:length(omega) resultCol = []; for k=1...
I'm not really an audiophile, so I can't determine the difference. I was playing around with Matlab's Graphic EQ and I noticed that there is a difference in the Magnitude response for the same gain between parallel and cascade. I understand that there is a difference graph-wise because in cascade, the magnitude respons...
How should one go about calculating the $Z$-transform of a signal that is the multiplication of $k$ signals (i.e. a multilinear function with regards to signals $y_1(n) \ldots y_k(n)$ ? Namely, $\mathcal{Z}\{ y_1(n) \cdots y_k(n) \}$ ? Is there a way to bound the coefficients of the resulting $z$ polynomial? Would the ...
I am working on image binarization for my undergraduate project. The idea is to convert an RGB image to a binary image while retaining maximum features. I presented a comparison of the results of my algorithm and Otsu's algorithm for the project presentation (i.e. the output images of both algorithms, so visual inspect...
I have not worked with MFCCs before, but I am faced with the observation that the 5th MFCC of a signal is actually of interest for me in my speech research. In order to understand why that one is important for me, I need to make sure that I understand what it represents. If I know the number of Mel frequency spaced fil...
Following up on a previous question, I wanted to understand how to solve an image deblurring problem using Variational methods in matlab or julia. Given some original blurry image $f$, I would like to find the deblurred version $u$. $K$ is a function that essentially softens the edges of the image and takes $K: u \righ...
I want to multiply sine and cosine signals(have same frequency). I've sampled the signals and converted to digital . Samples can range from 0 to 4096. like 4095, 4078, 4028, 3945, 3832, etc... I want to multiply(In IDE using C lang.) them(mixer logic) and store in another variable . Should I use digital samples like ...
Given a discretely sampled sinusoidal signal (frequency $1/40$), and 2 Simple Moving Averages (SMA), better known as FIR low-pass filters of order e.g. $10$ and $21$, it can easily be calculated what these filter's gain will be, using this formula: with $n$ the window length of the SMA, and $p$ the period of the sine w...
I currently feed a sampled audio input signal into a 511 tap highpass FIR filter, the output of which is then fed to another 511 tap lowpass FIR filter, resulting in a very narrow bandpass filter capable of filtering out an individual musical note. I'd like to use a single filter with the same response and I've found a...
My question is on OFDM signals for LTE. I been reading a tutorial on LTE where ofcourse the modulation is OFDM and it is explained that an OFDM signal is a rect function in time domain. The duration is equal to $\frac{1}{\Delta f}$ assuming ${\Delta f}$ is the subcarrier spacing. Then it is explained that in frequency ...
I have a dataset of quarter second 16 bit mono PCM audio clips, each clip labelled as speech or nonspeech. I am trying to estimate the quality of the labelling by randomly sampling a few of them and listening to the clips. How do I detect if the samples are labelled correctly by hearing them?
I've read posts that Ubuntu 16.04 is not a good fit for newer gnuradio. Since I can't update Ubuntu so I had to install 3.7.9. It works fine except the C++ part. Because GRC won't generate C++ code (as far as I know, Python only), does someone have working C++ template/examples that would work? I followed the step-by-s...
A discrete time signal $x[n]$ is defined in terms of unit impulse function as follows: $$x[n]= 1-\sum_{r=3}^\infty \delta[n-1-r]$$ If $x[n]$ is expressed in terms of the unit step function as $x[n]=u[an-b]$ then find the values of $a$ and $b$. I have tried to solve but not able to solve it further. Please check this im...
In the standard definition of Discrete Fourier transform, as in Wikipedia, only positive frequencies exist. I want zero frequency to be at the center of the spectrum. In such a case, how should I change formula for Discrete Fourier transform?
My question is simple. I think I kind of understand FFT and DFT. what I dont understand is why, in Python or matlab, do we use FFT size as the number of samples? why does every sample taken in the time domain corresponds to a frequency bin in the frequency domain.
I have been looking for a way to filter a 3D volumetric image in python with a Butterworth filter, but I haven't found any good solution. I have tried this: import scipy order = 10 normal_cutoff = 0.2 b, a = scipy.signal.butter(order, normal_cutoff, btype='lowpass') 3d_array_filt = scipy.signal.filtfilt(b, a, 3d_array...
Are there excellent references for machine learning, deep learning and ai for DSP researchers?
I'm working on demodulating an fsk signal sent from a cubesat on the ground to an antenna station. I'm trying to do it in GNU radio but I am not quite getting the original signal back. The cubesat uses a si4464 radio and I have the fsk signal centered at 434 mhz with the mark and space being +- 20khz. I've put a screen...
I am new to EEG data, Could you please explain why we need to multiply Fs by window_time_length ? I thought by defining window_time_length, we define the length of epoch! I am working on P300 BCI speller and try to understand how its classifier works. I am using a code from Internet. a part of code for per-processing d...
I am working on a research project. The main task is timing error correction algorithm. I start with studying algorithms which are exist. Currently I have read about Gardner TED algorithm for PSK modulation signals. In the last publication (“A Modified Gardner Detector for Symbol Timing Recovery of M-PSK Signals” or “S...
I have created this spectrogram from a wav file. Please have a look: I want to get the x = time, y= frequency, z=intensity(db) of every pixel of the spectrogram. How can I get these coordinates? I am looking for a programmatic approach (using R, python, java etc). Regards, Elyn
Let's take as an example an IIR filter using the 'sos' output, as this is what I use the most. To apply a bandpass filter, you can do: from scipy.signal import butter, sosfilt fs = 512 # Sampling rate, Hz lowcut = 1 # Hz, cutting frequency highcut = 40 # Hz, currting frequency low = lowcut / (0.5 * fs) high = highcut...
I have some question about wireless evolution. It's about 3G to 4G. Why LTE use OFDM not CDMA? What are the advantage and disadvantage of these two multiple access? Cause I'm not familiar with CDMA, so I don't know the goodness and weakness. About OFDM, from my point of view, OFDM due to long symbol which can deal with...
I am learning LTE, there are something I want to figure out. Why using single carrier FDMA (SC-FDMA)? and why OFDMA for the downlink? SC-FDMA is designed for solving high PAPR (Peak to average power ratio). As I know high PAPR wolud caused power consuming, but I don't know why. Another question is about SC-FDMA, I can'...
Discrete signals can come from sampling continuous-time signals. A continuous-time signal can be of infinite support. For instance, a sin wave. In terms of mathematical description of signals and systems, it is assumed that a discrete signal is a function defined on $\mathbb{Z}$ and mathematical derivation proceed happ...
I am trying to plot windows of acquired data from an LSL-compatible system. For the example below, let's consider 1-second window of a 64 channel EEG system. In practice, I use shorter 0.2-window, but the problematic behavior is present also with 1-second window. The acquired data is a numpy array of shape (samples, ch...
Imagine we had an FM modulator with carrier frecuency $f_c$. My doubt is about the optimal approach to use it for transmitting a tone (CW) of a frequency $f_c+\Delta f$. Let $x(t)$ a and $y(t)$ be the input and output of an FM modulator. Then, $$y(t) = A \cos \left( 2\pi f_c t+2\pi \beta\int_0^t x(\tau)d\tau\right)$$ W...
Given a bode diagram From the figure, I see that when $\omega = 100 \text{ rad/s}$ the magnitude response starting to go down and when $\omega = 1000 \text{ rad/s}$ the slope become higher. Then $$H(s) = \frac{1}{\left(\frac{s}{100} + 1 \right)\left(\frac{s}{1000} + 1 \right)}$$ Then I tried to plot it on MatLab and h...
I want to sample (evaluate at regular intervals) the integral of the Kaiser window. Is there a nice closed-form solution to this, so I don't have to do it numerically?