instruction
stringlengths
31
27k
I'm trying to implement a low pass filter in python for a complex signal but the output doesn't look right. I've created a simple example below where I've mixed a 15Hz complex sine wave and a 30Hz complex sine wave so that I get a signal with components (30+15=45Hz and 30-15=15Hz). What I'm trying to do is filter this ...
I have a linear 4 element antenna array currently in my design, I am able to obtain the I/Q data from each antenna. Now I am trying to implement the MUSIC algorithm to obtain the AoA (Angle of Arrival). I have read some articles about the algorithm, however, I did not come across any article that explains how theory ca...
As I was reading my book, I came across the following expression: \begin{equation} \sum _{n=-N}^N\sum _{m=-N}^N \phi \left(n-m\right) \end{equation} Then the book said, if we let $k = n-m$, then: \begin{equation} \sum _{k=-2N}^{2N}\left(1-\frac{\left|k\right|}{2N+1}\right)\phi \left(k\right) \end{equation} Can somebody...
I have a PCM signal recording of UART data after high-pass filter. The recording looks like this: I know baud rate and parity setting beforehand. What algorithm could help me recover actual binary data from the recording automatically?
When capturing microphone audio, I noticed that my static buffer eventually overflows. So I timed the samples, and low and behold I'm getting an actual sample rate of 44102-ish Hz (my timer is very accurate). Is this the actual sample rate recorded by my microphone, or is windows sending me samples twice? Doesn't this ...
Suppose I was handed a blackbox that I know is either a Convolution filter or Cross-Correlation filter, and my job is to find out which it is. My idea is to pretend that it's Cross-Correlation and attempt to do Template Matching using an image and a crop of the same image. If the output has a peak where a successful te...
One thing that has always puzzled me is making the units of an analytically derived Power Spectrum Density (PSD) consistent with the units of an FFT. Let's say we record the output of a frequency generator, which we just set to output a signal of the form $$v(t) = V_{\rm{pk}} \cos (2 \pi f_0 t)$$ for some finite amount...
The following relation gives me the measurements of interest $w$ at equally distanced locations $x_j$ in space: $$w_j=\sum_{m=1}^{11}A_m\sin\left(\frac{mπx_j}{L}\right)$$ where $A_m$ are the Fourier coefficients of sine series and $L$ the total length is physical space. I also assume $m = 1,2,...,11$. Now, how can I ob...
I am looking to interface PlutoSDR with gnuradio on a macbook. I have gnuradio-companion installed, however, plutosdr blocks (source and sink) don't show up in it. Also tried installing iio-oscilloscope but didn't seem to work. Online help for gnuradio+PlutoSDR+macbook is limited compared to Linux, Windows etc. platfor...
I want to know that the addition of a uncorrelated time series x with a correlated time series, say y generates a time series but is that correlated or uncorrelated output? For example: x is White Gaussian noise and y is pink noise, then z = x+y Looking at the plot which is the output of the noisy time series, it is ha...
I understand that in the decomposition process, wavelet and scaling functions are used to split the signal to approximation and detail coefficients. Most of the time I saw the wavelet and scaling function associated with the normal discrete wavelet transform. I assumed the same functions are used for the discrete wave...
I'm developing an audio filtering algorithm that can be run in different scenarios, e.g as embedded firmware on DSP Codec/Core, as a software library, or as a cloud service. Effectively, it can target solutions for hardware, software, and services - but I realize there are semantics and overlap here. I'm struggling to ...
The Symplectic Finite Fourier Transform (SFFT) of a 2D periodized sequence $x[k,l]$ with periods $(M, N)$ is defined as $$X[n,m] = \sum_{k=0}^{M-1} \sum_{l=0}^{N-1} x[k,l] e^{-j2\pi \left(\frac{mk}{M} - \frac{nl}{N}\right)}$$ Is the above expression equivalent to an FFT performed on the rows of $x$ and IFFT performed o...
I am trying to understand the following: Consider a system implementing a rational sampling rate change by $\frac{5}{7}$: for this, we cascade upsampler by 5, a lowpass filter with cutoff frequency $\frac{\pi}{7}$ and a downsampler by 7. The lowpass filter is a 4th order Butterworth filter with transfer function $$ H(z...
I exported a diagram from FDTD simulation, and now I want to change the magnitude to dB, here is the exported codes: ax1 = axes; plot(lum.x0,lum.y0) set(ax1, 'XLim', [1.49806e-06 1.60194e-06]) set(ax1, 'YLim', [-0.0232806 1.22328]) set(ax1,'XGrid', 'on') set(ax1,'YGrid', 'on') and the ploted spectrum is shown be...
I am writing a synthesizer. One part of the synthesizer specification says that different sources can specify an attenuation to be applied to a signal, and that these attenuations should be summed. The attenuations are specified in cB and are given as positive values. An attenuation of 0cB means no attenuation. The nai...
I'm currently working on a problem that involves a Z-Transform. Basically, the essence of the problem is that if: \begin{equation} H\left(z\right) = \sum_{n=0}^{N-1}h\left(n\right)z^{-n} \end{equation} find: \begin{equation} Y\left(z\right)\:=\:H\left(z\right)\cdot H^*\left(\frac{1}{z^*}\right) \end{equation} The aster...
I wanted to ask about the real operations of BPSK and QPSK demodulation. How can we calculate it? I mean for example if I have a received symbol +0.6, then I need to demodulate it to be 0 or 1. what's the computational complexity required for that. same for QPSK.
I've been reading this lab sheet which explains the signal processing math of the RTL-SDR radio dongle. http://www.eas.uccs.edu/~mwickert/ece4670/lecture_notes/Lab6.pdf In pages 5 and 6, the local oscillator (LO) is said to be modeled by a multiplication with the complex frequency $e^{-j2{\pi}f_{c}t}$ as shown in the ...
I have an original speech .wav file and a few recorded samples of the same file. Each recorded version has some differences wrt the original file. For example, The source speech file has the following MFCC (computed using standard_mfcc.cpp from essentia library) values: metadata: version: essentia: "2.1-bet...
Pg. 223 claims so, yet my results via DFT differ: Is the textbook wrong? My attempted explanations: (code) DFT vs DTFT: "frequency response" is computed via latter. Still, DFT should resemble a sampled DTFT. DFT time-domain periodicity, whereas DTFT assumes aperiodic, or "repeats at infinity" with infinite zero-pad...
Is it possible to calculate the SNR from finite duration time-domain samples that contain the received signal, $y(t)$, where: $$ y(t) = x(t) + n(t) $$ and $x(t) =$ transmitted signal, and $n(t) =$ AWGN noise The signal $y(t)$ is complex baseband, filtered and resampled at Nyquist. The question here is, can the $\mat...
I'm trying to use a Kalman filter to process a pulse signal. My model is: x= [x1,x2]$^T$ System model: X$_k$ = x$_{k-1}$ + W$_{k-1}$ , so A = I$_{2×2}$, the identity matrix. and Q= $$ \begin{matrix} q_{1} & 0 \\ 0 & q_{2} \\ \end{matrix} $$ Measurement model: We will incorporate the time dependence of the signal i...
I was able to get passable results on fundamental measurements using and exponential swept sine. Now I am trying to get distortion information from the same measurement but am puzzled by the results. I expected a much lower distortion value for the unclipped signal. Would these be considered valid results? Unclipped ti...
In my application a filtering in the frequency space is desired. I designed two high-pass filters: $h_1$ Butterworth IIR filter, and $h_2$ FIR. I designed them using Python's SciPy functions. Using signal.freqz I obtained the frequency response $H_1(k)$ and $H_2(k)$. I now want to filter signal in a real-time, buffer-...
I have ported Iowa Hills Code Kit to a mcu to calculate IIR filter coefficients. They are used to initialize the CMSIS Biquad Cascade IIR Filters Using a Direct Form II Transposed Structure. Trying to compare the output of my mcu program with a similar python script written using SciPy I realized that there is a discre...
I started school a week and a half ago and we have gotten already a big chunk of material and I wanted to check if what I am currently doing is correct. Here below are the problems to work out that help us for the exam in the future. (This class is signal processing) for part (b)
How does antenna isolation affect single user spatial multiplexing MIMO performance in an antenna array? Text books talk about a critical antenna spacing of 1/2 of the wavelength provided that the environment is a rich scattering one . Would that be the sole criterion? or would the antenna-antenna isolation rather be...
Followup; setting Fs = bandWidth in accepted answer's code yields the "correct" frequency response of an LFM chirp: constant magnitude, parabolic phase. Setting it to anything else, including >> bandWidth, yields distortions, and magnitude converges to a square in the limit Fs / bandWidth -> inf. Why's this the case? S...
I want to remove all signal components under 10KHz in one audio file. Below is my code from scipy.signal import butter, filtfilt def butter_highpass(cutoff, fs, order=5): nyq = 0.5 * fs normal_cutoff = cutoff / nyq b, a = butter(order, normal_cutoff, btype='high', analog=False) return b, a def butter_...
I am perfectly aware that you can efficiently use the standard FFT Cooley Tuckey algorithm to process N samples with one complex N/2 sized FFT. This however requires one additional loop before the FFT to "prepare" the data and one after to rearrange them. I am rather wondering whether a natively real FFT implementation...
How does arithmetic coding work with images? I understand how it works with textual messages but I don't understand how it works with images. So with textual data, we use the probabilities of the symbols to divide the interval between 0 and 1 into subintervals and then at each round we choose one of the intervals to be...
The process of designing filters includes too many parameters like bandwidth, transition, degree of attenuation in side-bands, phase delay, causality, the magnitude of ripples, and so on. First of all, we want to approach the ideal filter structure so we can design many different filters to obtain the desired ideal fil...
How to implement a series of second-order, digital state-variable filters, using the high-pass output from each section to effect the low-pass to high-pass transformation in MATLAB? Hello, I am trying to implement the state-variable filters detailed in the picture I have attached. This to achieve a near-field correcti...
My question concerns signal segmentation. My signal is the green one, which represents the distance from the first point to the rest of points. I would like to cut the trajectory into segments that each represents the current status of the person, is he currently making a move, or making a stop? This is my plot: th...
I'm currently working with physiological signals (PPG and GSR) for emotion recognition but, from my research, I've found out that almost everyone in that area use a PSD analysis over a FFT analysis. I've been reading about them and found out that PSD helps with giving a clearer view of the spectrum despite the amount o...
Does anybody know a source that illustrates the algorithm to use TDOA method to locate a transmitter? Would the equations to solve (x, y, z) of the transmitter location linear or non-linear? How about the iterative algorithm to locate a transmitter based on TDOA measurements?
I am reading about cross-correlation from this document and equation (5) states that The maximum value of the crosscorrelation is not always when the shift equals zero; however, we can prove the following property revealing to us what value the maximum cannot exceed $$R_{xy}(\tau) \le \sqrt{R_{xx}(0)R_{yy}(0)}$$ Howe...
I am working on a machine learning problem, where i have to predict if a device connected with solar panel at a specific block has been damaged. I have many factors to consider, out of which atmospheric temperature, wind speed and a humidity are to be considered. These 3 factors are being recorded from 3 separate devic...
Does it have one? The continuous variant does, $f'(t) \rightarrow j \omega F(\omega)$ - but $jkX[k]$ definitely isn't it for DFT. To find it there must be a useful simplification of $\text{DFT}(x[n] - x[n-1])$, where $x[n] = \sum_{k=0}^{N-1} X[k] e^{j2\pi kn/N}$, while also accounting for the one dropped sample (x[0]) ...
I have a continuous signal. I digitize it at 40kHz. A useful signal for me is in the range of 500-1500Hz and takes ~ 50-100Hz. It can be located in any part of this strip at any time. If I apply a digital bandpass filter at 500-1500Hz, I will select the signal I want from the entire band, and along the way I will coll...
I'm trying to design a low pass filter in Verilog for use on a Red Pitaya's FPGA (Xilinx® Zynq®-7010). All I'm trying to get the low pass filter to do is to obtain the DC component in the signal. The only part of the signal I require is the DC component. Can someone put me through on how to go about the design as I am ...
I am trying to compute the reverse Z transform on Ocatve and I get the following error: error: 'iztrans' undefined near line 1, column 1 The code I am running is the following: syms z F = z % Some function implementation iztrans(F)
Can someone please explain how would the image of a biosignal say PPG be affected when a higher-order Butterworth filter is used. Please don't tell about bode curve, I need practical aspects of it. What is the practical implication of a narrow transition band with higher-order filters on a signal?
I am beginning my journey on trying to understand a little deeper on signal processing. I wonder if the effect I am seeing is worth any spit or is there a deeper level of understanding is apparent I do not grasp. I was initially using Jupyter Notebook to make some examples of Aliasing so that I could see the frequency ...
I'm trying to understand the effects of sample-to-update delay in digital control of power electronics. I am aware of the issue but not 100% sure how to quantify it. There is an interesting paper by Böcker et al, On the Control Bandwidth of Servo Drives, which includes this diagram: The time delay is characterized by ...
When sampling a low-frequency sound (like a 55Hz sine wave) I hear an additional high frequency sound at certain sampling rates, but not at others. This happens in Audacity and in my own program. For example, I hear both a low and a high pitch when sampling at 44,100 Hz, but only a low pitch when sampling at 48,000 Hz....
For evaluating the performance of algorithms that use double-precision floating point numbers, or to pre-calculate double-precision floating point data to the best precision, it would sometimes be useful to evaluate the discrete Fourier transform (DFT) and the inverse discrete Fourier transform (IDFT) at arbitrary prec...
It is known that the Kalman filter can filter the data with noise. I also find it works well after using it compared with FIR, low pass filter,etc. Now, I have a couple of questions about the advantages and disadvantages of the Kalman filter compared with FIR, low pass filter,etc. (In accordance with the conditions of ...
I recently saw a matlab sensor fusion example which combined IMU and GPS data for drone localization. What was surprising about it was that the IMU was used to predict future behavior of the system as if it was a control signal. Basically the IMU reading was read and then integrated over a time step to create a predict...
I have seen several methods to calculate Autocorrelations using FFTs, and am confused about why they differ. Zero-Pad it to double its original length.Take the FFT. Then replace all the coefficients with their square magnitude, except for the first, which you set to 0. Now take the IFFT. Divide every element by the fi...
I am trying to show with numpy that the quantization noise of a sine wave matches the SNR formula of SNR = 1.761 + 6.02 * Q. The numpy code is simple: import numpy as np import matplotlib from matplotlib import pylab, mlab, pyplot plt = pyplot from pylab import * from numpy import * from scipy import signal def quan...
I have time sequence in which the data is sampled at 0.8 Hz. The data is related to chromatography (chemical analysis), that is why the sampling frequency is relatively low. The instrument cannot sample faster at this moment. I was exploring the idea of upsampling by zero padding in the frequency domain as follows in M...
I'm new in Image processing and Machine learning area. I want to create 3d mask of face at runtime. import numpy as np import dlib cap = cv2.VideoCapture(0) detector = dlib.get_frontal_face_detector() predictor = dlib.shape_predictor("shape_predictor_68_face_landmarks.dat") while True: _, frame = cap.read() ...
How can I find the fundamental period of the given signal? Can anyone help me, I am stuck. $x(t) = cos(2πt) + cos(4πt)$ $y(t) = cos(2πt) + cos(2t)$ Thank you in advance.
I've been reading on interpolation methods recently and I have come across an implementation of cubic interpolation that is leaving my head scratching. Every other variant and example of cubic interpolation I've come across has included lots of fractions and exponents. This implementation I found on Paul Bourke's websi...
I'm trying to derive the Fourier Transform of a finite-length discrete signal to show the effect of windowing,e.g. spectral leakage and resolution, but I can't seem to arrive at the same answer. Just some notation: normal braces, (), indicate the CT signal and square brackets, [], indicate the DT signal. A continuous-t...
I am trying to get a general sense of how many multiplication operations are needed for a 4th-order Butterworth filter (IIR filter) with a rational sampling rate change. I am excluding any multiplication by 0's. For example, for an upsampler of order 5 and downsampler of order 7 with a 99-tap FIR filter in between, the...
Let us assume we are talking about real, deterministic, electrical signals $x(t)$ and $y(t)$ (magnitude in Volts). There are different kind of Fourier Transforms. I made a table to summarize: NB: By the "<-" symbol, I mean variable substitution. I tried to figure the physical unit of the output. The $\mathrm{V}\cdot\m...
It easy enough to study correlation, and matched filters. But the challenge I see unmet anywhere to date and which I struggle to meet myself is a simpler presentation, to with more difficult task I suspect. Can you explain, in lay terms, to satisfy the intuitions of a listener, why the matched filter is a time reversed...
Because of interesting spectral phenomena, I would like to shift the >20kHz content of my audio recordings to audible frequencies, so that I can listen to it. I tried the Audacity pitch correction feature, but didn't succeed. Any help much appreciated.
I have a device (Large as typical PC casing) with a motor. There can be a condition that the device motor load is unbalanced and the device starts to move around the table and I need to detect this. For this, I have an accelerometer. But the problem is that I can't come up with a reliable algorithm to detect these vibr...
I am trying to understand how to calculate the power of a received signal under Raleigh fading. What I gather is that the Rayleigh fading is a complex Gaussian random variable and that the multipath components are summed. I also understand that the fading is applied at the symbol level. Would it be possible to calculat...
I have a dataset of single-channel audios containing speech, recorded in a single room. I need to extract the room IR's. The goal is to simulate the room acoustics and adjust new speech audios recorded with close microphone such that the reverberation is similar to the room in question. What are my best bets? I read a ...
Having a conceptional issue. If a SDR dongle has a 2MHz signal bandwidth, but that can be anywhere within the range of 50-2000 MHz, why is the bandwidth only 2 MHz. The clock must be double the highest frequency, whether this is 2000 MHz or a lower baseband signal after analog down conversion of that 2000 MHz. So why c...
German: Sie betrachten das zeitkontinuierliche Signal $s(t)$ mit einem digitalen Oszilloskop mit Abtastperiode $T_\mathrm{s}$ und messen das zeitdiskrete Signal $\tilde{s}[n] = s(n\:T_s)$ Nehmen Sie an, dass das Abtasttheorem eingehalten wird. Können Sie $s(t)$ aus $\tilde{s}[n]$ rekonstruieren? Begründen Sie! Skizzi...
In a quantization process what happens when the signal range is more than the quantizer range? Suppose i have a sinusoidal signal which ranges from -5 to +5 but the quantizer which has four levels ranges from -3 to 3.now for the samples which are greater than 3 and less than -3 what will happen?
I have solved $w(t) = 1dt$ and determined it as power but when $w(t) =\Pi\left(\frac{t}{T_0}\right)$ it is energy.
Keeping in reference this image, I want to build a concrete understanding of interconnection between Digital Signal Processing and Computer Vision. What would be the applications of this co-relation?
In μ-law compression formula i have always seen that the value of Xmax and Ymax is always same but can they be different?
I have started analyzing a signal from a MEA experiment that consists of reading from electrodes inserted in a brain slice. Anyway, the signal is sampled at 2 KHz but the readings we have are very strange. It looks like it is very noisy and we cannot understand why it is so much noisy so one of our doubts was if the sa...
Why is the periodogram method as given by Schuster (1898) - which is not a consistent estimate of the PSD - still used, as opposed to consistent non-parametric methods for estimating the PSD like Welch? I'm looking at the Signal Analyzer app in MATLAB which seems to switch between the periodogram method with a Kaiser w...
I am considering the problem of how to (manually) change camera model parameter to make it "valid" on a rotated image. This question tackles resizing, but does not consider lens distortion. My problem is this: Given 3x3 camera parameter matrix + 5 radial distortion coefficients as computed by OpenCV, how do these para...
I've been stuck on a problem regarding complex demodulation of a signal for a while and wondered if anyone could help. Suppose I have a signal $X(t)$ such that \begin{align} X(t) &= A(t)\cos(\omega t + P(t)) + \xi(t) \\ &= \frac{1}{2}A(t)[\exp(i(\omega t + P(t)) + \exp(-i(\omega t + P(t))] + \xi(t) \end{align}...
I am trying to figure out how to consider digital-to-analog conversion and how to consider oversampling based on a course I am taking online and figuring out the logic behind this. Unfortunately there is very little on this topic in the textbook, and I am not sure where to start. Consider a D/A converter for audio sign...
I'm attempting to synthesize a logarithmic sweep signal to measure the IR of a system. For the most part, I'm following Section 5.2 of the paper Transfer Function Measurement with Sweeps. To generate the sweep, I have written a GNU Octave script. However, the resulting time-domain signal is incorrect, and I can't seem ...
I am reading these lecture notes on Optimisation and Inverse Problems in Imaging, and I have difficulties understanding how figures on page 20 (Figure 3.2) or page 21 (Figure 3.3). Precisely, I don't understand what numbers on horizontal and vertical axes mean. I would appreciate if you could explain me this. Here is t...
I have a huge dataset containing temperature data inside a building. I want to extract the time that the building starts and stops controlling the temperature (approximately around the vertical black lines in the pictures). In this case the temperature control starts and stops at the same time. However, I want to detec...
I am interested in information about the output of SVD of the matrix. Mathematical part of SVD process is clear to me but I don't understand how to read figures with graphs of SVD of a matrix. As I understood vertical axis represents singular values. But I can't figure it out what horizontal one represents. Also, wha...
i have a signal something like this how to calculate PSD? i have freq from 191000200 to 196500000 time gap or delta t = 1 or 2 sec, (what i mean is [tn] - [tn-1]) i will be computing in python any suggestion from scipy or any lib will be helpful thanks in advance
I am trying to find a Python replacement for the Matlab function cfirpm (complex FIR Parks-McClellan). I use cfirpm in the design of a complex FIR magnitude and group delay compensation filter for a crystal IF filter. Since the frequency response of the crystal IF filter is not symmetric, the compensating filter isn't ...
I'm working on side research that deals with signals and data in the time domain. currently, I want to use the multiple signal classification algorithm (MUSIC) which is mainly used for frequency estimation (I've found a lot of resources for DOA MUSIC which is not my interest). The formula of the equation is as follows:...
For a regular RGB camera, reading the wikipedia page for camera resectioning/calibration here, they divide the paramters into two categories: Intrinsic: - focal length, scale factors in x and y, and principal point Extrinsic: - the rigid body transform of the camera relative to some origin point My question is how does...
In my Signal Processing class we just learned decimation however after messing around in Matlab trying an example of decimation, I just can't understand what's happening. I get the introducing twi zeros between samples and the after filtering steps however I don't get how the original signal comes to look like that in...
I know the snr after μ-law compression is $\text{SNR}\approx\frac{3L^2}{[\ln(1+ \mu)]^2}$ when $\mu \gg \frac{\max_t m(t)}{\text{rms}(m(t))}$, where $m(t)$ is the message signal, and $L$ the number of levels. Can anyone give the idea how it came or the proof?
Being a newbie on this topic I beg you to be indulgent to me if my questions should be kind of "too" simple ;-) For doing automatic analysis on my audio material I started calculating the most simple values from the int16 samples: Clipping count, DC-offset and RMS. For manual manipulating audio files I use an older ver...
I am using gnuradio to develop custom OFDM blocks using Python. I have used gr_modtool to create my blocks and import them into gnuradio. When I try to run my flow graph using one of my blocks I get the following error Executing: /usr/bin/python3 -u /home/<user>/asd.py Traceback (most recent call last): File "/home/...
I had to use 2 separate devices for a video call, desktop for video/audio output and smartphone for recording, since the desktop microphone was not working properly. Unfortunately for me, when I started speaking, my first few words got echoed perpetually, and my following words were ignored by the microphone. What coul...
I have multiple (4 kinect) cameras that give RGB-D (color and depth) information of the same scene from different points of view. I want to make a 3D point cloud out of these depth maps. I can get a 3D point cloud for each camera using a function available via the SDK. but my question is how can I merge these points in...
I have a signal magnitude and phase in frequency domain. I need to have it in time domain but I really have no idea how to do it. I heard something about mirroring the signal but I'm kinda new at this. I have tried to do something like this in matlab but I'm clearly missing the point. And how do I define the time vecto...
Interested to design and simulate FMCW radar for Vital Signs sensing. The initial signal parameters are(1): When using the following Matlab code to generate the waveform: fc = 77e9; c = 3e8; tm = 50e-6; bw = 4e9; fs = 4e9; waveform = phased.FMCWWaveform('SweepTime',tm,'SweepBandwid...
I have developed my own window function for pre-processing signals prior to a DFT (FFT). How do I measure the performance of the window so that I can specify how good (or bad) it is? Maybe other people would be interested in the window but only if I can quantify its performance I think. If I can give an example... When...
Edit As for window weighted mean, this is known as Birkhoff averaging. In the case of quasiperiodic signals, such averaging is superconvergent. Weighting by $\exp\left(\frac{1}{t^n (t - 1)^n}\right)$ with $n=1$ is particulary efficient. Super convergence of ergodic averages for quasiperiodic orbits End Consider real ...
I'm new to signal constellation and trying to understand how M-PAM works. If there is a binary sequence that has on odd number of bits and I want to send a 4-PAM signal, there will be one bit left after encoding a symbol by two bits ($k=2$). For example: the sequence $1001001$ will be encoded as $10\rightarrow3$, $01\r...
My understanding is that the DCT assumes the input to be an even periodic signal. This avoids the discontinuity that can occur in the periodic extension assumed by the DFT (see image). Does this lack of discontinuity prevent spectral leakage from occurring in the DCT? If so, why are input signals still often windowed p...
I wish, in real time, to hum into a mic and produce via dsp the envelope and pitch of what I am humming, before outputting these two signals to my analog synth. This synth takes a gate and a cv signal. Control Voltage/Gate is an analog method of controlling synthesisers, drum machines and other similar equipment with e...
I would like to know what is the proper way to sum interferences. I have, for example, let say 0.4 mW, 0.035 mW and 0.2 mW are those interferences. Do I have to sum them resulting 0.635 mW or make a conversion to log scale, for example, dBm and add these dBm log values? The results are different; if I convert the thre...
In the following snippet, I am differentiating a sine wave using the central difference equation, first through misc.derivative and then through convolution with the kernel [1/2, 0, -1/2] import numpy as np import scipy.misc as misc import scipy.signal as sig ncycles = 5.0 nsamples = 500.0 x = np.linspace(0,ncycles*2*n...
I have already asked (in another thread) how to quantify (specify) the window function I have created. One figure I need it seems is the Equivalent Noise Bandwidth (ENBW) Or Noise Equivalent Bandwidth. I now need some practical help. How would I go about determining the ENBW of my window function? I guess I am asking, ...
I wanted to plot the root locus for a system, whose plant transfer function is $$ P(s)= \frac{k}{Ts+1}e^{-ts}. $$ A PI controller was suggested for this system, and the task is to find $K_p$ and $K_i$ values, such that it satisfies the following performance specs: Maximum peak overshoot < 5% Settling time (2% band) <...