# Questions tagged [matlab]

MATLAB (MATrix LABoratory) is a numerical computing environment and a fourth-generation programming language. Use this tag with care.. see excerpt.

2,751 questions
Filter by
Sorted by
Tagged with
53 views

### Design the coefficients of Wide-band FIR filters [closed]

It will be a great help if someone could share a content/tutorial about how to design the coefficients of Wide-band FIR Filters.
867 views

### How can I transform a time signal into a third octave spectrum?

I try to make a third-octave spectrum from a time signal and I have some troubles with the algorithm. I'm not an expert in signal processing so I don't know what is wrong. Here what my algorithm ...
197 views

### convolve to differentiate black and white colors

a figure for instance of size 500*500 has half above part with black and below half white should result in a white line where the white meets the black (something like a single line at line 250 with ...
77 views

### Recover an OFDM signal affected by AWGN

I have an OFDM signal affected by AWGN, if I know the power of the gaussian noise, can I recover the OFDM signal? Can I perform deconvolution to recover the original signal? thanks
292 views

### 2D DWT computation order

In 2D the discrete wavelet transform (DWT) of an image using lifting based 5/3 filter, if I perform a row-wise operation first then perform column-wise operation then I will get 4 sub-band LL, LH and ...
181 views

### Difference between applying a window to a whole signal and frames.

I'm going to do feature extraction using a speech signal. The first step is the windowing of the signal using Hamming window. I'd like to know if I should apply one single window to the whole ...
503 views

### Bandpass filtering an audio signal with MATLAB's $\tt kaiserord$: unknown new frequency component

I am trying to filter an audio signal with kaiserord in MATLAB, but I'm having a problem. Here is my code: ...
40 views

### Trying to do frequency analysis of an accelerometer output

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....
560 views

### Confusion about ensembles and averages in autocorrelation matrices

I just noticed that until now I often don't cared about the scaling of the autocorrelation Matrix in Matlab. I then checked with the book Statistical Digital Signal Processing from M. H. Hayes. There ...
69 views

### Why is the Fourier transformation full of spikes with 12.5 Hz frequency steps?

I am performing a fourier transformation in matlab for time signal data with monitoring points for pressure extracted from a simulation. What I get at the end is a spectrum as shown below: I am ...
19 views

### How to design function for Random Decrement technique in python and implement the function?

I was looking into a technique called Random decrement technique from the following links/articles: How can I use Random Decrement Method to convert a non-stationary signal into a decay function ...
18 views

### Pls help me, i dont know why i cant train Harcascade object detector . I dont see many information in google [closed]

[ -I have a homework that: Create a new train cascade object detector to detect any a object. And i choose detect stop sign. And i use code in youtube . This is the youtube link:https://www.youtube....
129 views

I am a bit confused as to how to go about this. I have a surface [x,y,z] given by: ...
360 views

### Complex Data type not accepted in Simulink

I am having an issue with the interaction of the Matlab function block in the Simulink with my model block. Below you can also find the picture. I have created a Matlab function with three inputs and ...
400 views

### Why is the relationship between Es/N0 and SNR different for complex and real signals?

I try to use the AWGN Channel model of MATLAB to build my simulation model, but the explanation of the relationship between Es/N0 and SNR in the official manual of MATLAB makes me confused. It says ...
3k views

### How can I work on DSP using C/C++?

I have been working on MATLAB for signal processing for a while. Many companies from DSP for a communication background has asked me whether I know C/C++ very well. I am confused as to why the ...
650 views

### MATLAB: $\tt freqz$ vs $\tt bode$

I started studying DSP recently. In my MATLAB assignments, I am often asked to plot the frequency response of a digital filter using freqz. I know there's another ...
38 views

### Converting a Matlab filter-design to Matlab code and obtaining filter coefficients

Central problem (Abstract): Using the Matlab filter-designer results in direct-form II transposed coefficients, which i need. However, generating Matlab code from the filter-designer app itself does ...
1k views

### Envelope detection in frequency domain with MATLAB

I need to compute the envelope of a spectrum in MATLAB. Is there a specific function that can do it? I saw the function [yupper,ylower] = envelope(x,np,'peak') ...
105 views

### Finding the Correlation Matrix of Wiener Filter using MATLAB

I have the problem below and need to solve it using Matlab. I not a big expert in Matlab and just don't know how to implement it. Basically, it says that R\:=\:\left[X\left(n\right)X^...
20 views

### Group Delay of a GLP [closed]

I am trying to understand what is the Group delay from a given figure. I was given an assignment with the following figure: and was asked the following: "what is the group delay (in the passband ...
161 views

### How do I create a polar plot from a multi-channel sound file?

I have a multi-channel sound file from a microphone array. I want to get the polar plot in Matlab in order to get the directivity patter of the sound source. How do I do this? I did the FFT on the ...
18 views

### MATLAB ambigfun not working

I'm getting an error when I try to use MATLAB's ambigfun. The error message is: "The pulse is longer than the available data in X." There is no "X&...
841 views

### How to Reduce Phase Lag Caused by Kalman Filter

Background I have been developing a system using a moving robot with a distance sensor against another robot. I want to control these robots by estimating relative velocity and acceleration derived ...
2k views

### Computation of the Inverse DCT (IDCT) Using DCT Or IFFT

Is there a way to compute the inverse discrete cosine transform (type-2) by leveraging either a DCT, FFT, or IFFT algorithm? I have seen ways to compute the DCT using FFTs, and I've seen ways to ...
526 views

### Step response of feedback system

We have a feedback system F(s) as in this figure: and this is the step response of G(s): and H=10. F(s): We got the root locus of the system F(s) as this: then we determined the gain at ...
67 views

50 views

### The scaling of FFT magnitude and phase

In Matlab, I simulated and graphed out the FFT of a signal composed of three pure sinusoids of distinct magnitudes and phases. Figuring out the scaling of the frequency axis is fairly straightforward ...
130 views

### Plotting Frequency Response Magnitude and Phase for first order all pass filter

Having trouble plotting the frequency response characteristics for first order all pass filter. The Magnitude is expected to be constant across entire freq and Phase is expected to be only decreasing (...
12 views

### IF Data for GPS C/A and B1C Signals

I am testing a custom GNSS receiver in MATLAB environment. The receiver is developed for GPS C/A and Beidou B1C signals. I need two short lengths (1 min) IF data for two basic scenarios. I could not ...
21 views

### Failing to use Cross-Correlation to find position of measurement sequence in data-stream

Recently I used two measurement systems to record a quantity. I made sure both use the same sampling frequency. One system was recording continuously while the other one was operated to only record ...
139 views

### Matlab - Bode plot of Lag Filter + Integrator

I am rather new to Matlab and I just cant make sense of what I see in the bode plot of the continuous and discrete version of the same function. The bode plot of the continuous function looks as ...
15 views

### How can i generate training progress plot from saved trained model in matlab?

I would like to know is there any ways to generate back the training progress plot or verbose result from the saved trained model if i forgot screenshot/save both data manually? the code that i use to ...
4 views

...
60 views

### Apply Transfer Function in Continuous Domain in Matlab

I have the coefficients of a transfer function (i.e. numerator and denominator) in Laplace domain. How can I apply this to an input waveform using MATLAB script? I am looking for a function or piece ...
35 views

### Why psnr function in matlab returns a negative value for an image corrupted with Cauchy noise?

I have written the following matlab code for producing a noisy image corrupted by Cauchy noise but when I compute the psnr value of the noisy image using psnr function in matlab, it returns a negative ...
124 views

### Popping sound after using bandpass filter

I'm trying to create guitar Wah Wah effect (basically band pass filter with dynamic frequency range). I'm using Steinberg SDK for it. I refactored this code to work in real time and it looks like this:...
642 views

### Matlab: Detect Peaks and Signal Jump

I want to detect 6 peaks in a signal. I am open to any suggestions. There is one problem where my signal sometimes jumps high and stays higher than the rest of the signal. I don't know why this ...
31 views

### How to interpret fft2() plots for images in MATLAB? What are represented by axes?

I got the frequency spectrum of a grayscale image using ...
95 views

### Wrong result when realizing fixed-point biquad IIR filter

I'm implementing a fixed-point direct form I biquad filter with Q1.15 precision. I use fraction saving to improve quantization error. However, my function gives me the different results compared by ...
1k views

### Converting PSD to Time Domain Signal

I am currently using MATLAB and I'm thinking if I can reconstruct PSD back to time domain signal using MATLAB's ifft. I found a link in solving this problem but it's in Phyton and when I tried it in ...