Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [matlab]

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

0
votes
1answer
9 views

How to implement discrete extended kalman filter in matlab

I have a nonlinear system, and I need to use the extended kalman filter to estimate it. I know I need the jacobian, but once I get that, is everything else the same as the normal kalman filter? I ...
0
votes
0answers
17 views

Simulating a Random Telegraphic Signal in MATLAB [on hold]

If I had to simulate an RTS in MATLAB by simulating a Poisson process, how would I go about doing it?
1
vote
2answers
60 views

Using Fast Fourier Transform to determine musical notes

Hi guys i am doing a course in Digital Filters and Spectral analysis. We are given a coursework/homework, and I have absolutely no idea what to do with it. I come from Maths background, never done any ...
0
votes
0answers
8 views

How to compute modulus and phase angle of images using complex morlet wavelet with fft function? [on hold]

I have a datacube of 250 thermal images. I am trying to compute the modulus and phase angle information of each images using complex morlet wavelet with fft function. Could somebody help me for this?
0
votes
1answer
11 views

What is the z-domain transfer function of variable delay?

Is it possible to obtain the transfer function of a signal that has a variable delay? For instance, I have a signal consisting of 10 samples: 0,1,1,1,1,0,0,0,0,1 If I would apply a unit delay to ...
0
votes
0answers
23 views

How can I convert binary bits into index in MATLAB [migrated]

I have a question regarding how to use the binary bits as an index in MATLAB, For example, if I'm using 4 antennas to transmit data, in each instant, one antenna or two are active to transmit the data....
-1
votes
0answers
17 views

Interpolation and decimation - checking the correctness of the calculated spectrum

So, I have my function performing decimation of audio signal, and I'd like to know if my function is calculating the amplitude spectrum correctly. ...
1
vote
1answer
97 views

Computation of parameter filter to match a given frequency response

I'm looking for the practical way to compute the parameters ($a_1$, $a_2$) of a digital filter to match a certain frequency response. I'm studying the 12-poles filter of the vintage component SP0256 ...
0
votes
0answers
15 views

Is my methodology sound for pre-processing accelerometer data?

I have a dataset with accelerations and I am specifically looking at the x-axis data. I want to show how I can pre-process the data to remove background noise and only look at 'large' / 'medium' ...
0
votes
0answers
9 views

My EMG Samples in Matlab and FFT Transformation? [on hold]

I have a EMG signal and when open it in Matlab as follows: time and signal have following structure: I read several sample but I couldn't get the FFT Transform from my samples. how I can get FFT in ...
3
votes
0answers
30 views

Solving the PDE of a signal in an optical fiber

Disclaimer Please let me know if this is not the right place to ask this question. Disclaimer Part 2 I have no background in signals. My focus is in mathematics. In my programming class, we are ...
0
votes
0answers
20 views

How to get hilbert marginal spectrum by matlab code? [closed]

I have a dataset matrix (8000*1) and have to get Marginal spectrum of hilbert . There is a code for this algorithm: https://ch.mathworks.com/matlabcentral/fileexchange/27531-marginal-hilbert-spectrum ...
0
votes
1answer
46 views

Unit Step Response of an Integrator

Desinging a very basic 1st order integrator with the continous transfer function: $H(s) = -1 / (0.001 s)$ [No zeros, one pole at origin] I was expecting the unit step response to be positive-slope. ...
0
votes
0answers
13 views

significance of value of n(inner most for loop) for Radix 2 Decimation in time FFT algorithm

I am studying signal processing with MATLAB Now i am interested in topic of FFT A matlab code was presented in our class for Radix2 FFT DIT algorithm I have understood the whole code except the ...
0
votes
1answer
23 views

phase tracking loop for dbpsk

I have a communication with a DBPSK modulation. The communication is disrupted by a Doppler shift (due to movement) and Doppler spread (due to channel). At the reception, after Doppler shift ...
-1
votes
0answers
13 views

Matching Pursuit with Gammatones on large audio?

Two in one question here: I'm trying to recreate what I see in the work of Lewicki/Smith. They use an overcomplete dictionary that includes gammatones to sparsecode audio. The end goal would be a ...
0
votes
0answers
23 views
1
vote
1answer
32 views

Redefine Median Filter in Matlab [closed]

How can I redefine median filter function instead of using the available function in Matlab? I want to smoothen my sound chart
0
votes
0answers
26 views

Savitzky–Golay on real-time data

I'm trying to use the Savitzky–Golay smoothing on real-time data in R. The R documentation page for the sgolay function says this: "Normally, you would apply the first (n-1)/2 rows to the first k ...
0
votes
0answers
31 views

ECG signal with kaiser and butterworth

first sorry about my english. I'm trying to do treatment of an ECG signal with kaiser and butterworth to compare. When a did with kaiser it's looked like that: Blue is before treatment. and orange ...
0
votes
1answer
29 views

How to model state space for complex valued system correctly in SIMULINK (MATLAB)?

When trying to use the default state-space model block, if there is a complex number valued in the matrices, there will be an error To resolve that, firstly I need to look at pseudo reference model ...
0
votes
0answers
24 views

model for chirp spread spectrum

For a CDMA with PN code, we use 'kron' in Matlab for spreading. But for a chirp spread spectrum, can we use this command for spreading? Because on the net, I saw that we used the command 'filter' in ...
1
vote
1answer
36 views

How to calculate the Fourier transform of a mean filter in Matlab?

In Matlab, how can I calculate the discrete-space Fourier transform of a mean which takes the average of 4 adjacent points, with this kernel $$\begin{pmatrix} 0 &1& 0\\ 1 &0&...
0
votes
2answers
30 views

Minimum Number of Errors required for BER Curves in Matlab Simulation

what should be minimum Number of Errors required for getting BER Curves in Matlab Simulation for different number of transmitted bits ?
0
votes
0answers
27 views

Dealing with Frequency Response Function in low signal energy region

I am dealing with the estimation of the frequency response function matrix of a second order damped mechanical system (natural frequencies: 0.63 rad/s and 1 rad/s for first and second mode ...
0
votes
0answers
13 views

Headphone Out not transmit .WAV file signal synthesis from Matlab correctly. How can I fix this problem?

I'm currently working on a project. The main goal is to use C5515 chip, with QPSK method, to modulate signal. I want to create a .WAV file that stores Modulating Signal. The width of a bit is $ 1/150 ...
-1
votes
0answers
20 views

Dft of windowed signal [duplicate]

can someone explain to me what is going on in these graphs? how does windowing the truncated sine wave improve the dft spectrum?
1
vote
0answers
21 views

Octave filtfilt converted to R code

R has a function called filtfilt that performs zero-phase digital filtering by processing the input data in both the forward and reverse directions. But it suffers from having steep transition bands....
0
votes
0answers
15 views

Spatial equivalent of frequency domain filter

I have been doing image filtering in frequency (fourier domain) which simply requires element-wise multiplication. I already know my filter in frequency domain. Now I want to have an equivalent filter ...
0
votes
1answer
23 views

“Revolving” QPSK Constellation

I am trying to code a QPSK transmitter in VHDL but first I want to create one out of Simulink blocks and translate it into VHDL code. I am using an example project for the PlutoSDR as a guide. This ...
0
votes
0answers
49 views

Audio Feature Extraction MFCC & LPC (MATLAB)

I'm doing gunshot recognition project using MATLAB and on feature extraction stage I'm stuck at MFCC and LPC extraction. I want to calculate 8th order LPC and first 13 MFCC's. But when I used ...
0
votes
0answers
16 views

Audio signal for each video frame

I have an mp4 video. Is there any way to extract the amplitudes of all the audio signals for each video frame in the available video? That is, suppose there are 1000 audio samples corresponding to ...
0
votes
0answers
57 views

How do I begin creating a 31 band equalizer using Matlab?

How to start creating a 31 band equalizer for a real time audio processing system? Given that the center frequencies of each of the 31 bands are the following: 20 Hz, 25 Hz, 31.5 Hz, 40 Hz, 50 Hz, 63 ...
0
votes
2answers
55 views

IIR high pass filter

I'm trying implement an IIR filter. I know the IIR filter come from that equation: and i found that for high pass filter the coefficients are: where fc = cut freq. here my matlab code: ...
0
votes
1answer
58 views

matlab impulse response [closed]

i have a matlab file and i'm trying to understand what's going on. when i run it, it shows this when i type the command : this at and this at can someone explain to me what increasing the value ...
1
vote
1answer
31 views

How to understand the discrete and continuous convolution in matlab?

For example,I want to calculate the convolution of two continuous signal in matlab as the image shows. Indeed, I chose to discrete the signal to compute in matlab. Obiviously, the 1st and 3rd are ...
0
votes
1answer
47 views

What is the difference between Spectrogram and Scalogram?

Could someone please explain the difference between the two? Spectrogram: A visual representation of the spectrum of a sound changing through time. Scalogram: (signal processing) A visual ...
0
votes
0answers
10 views

Otsu Segmentation [duplicate]

I tried to do Otsu Segmentation on this Image But I get this following Result I want to segment that first picture using Otsu Method,so what I want to achieve is the "purple cell" in the center.
0
votes
0answers
13 views

Sparse recovery for hyper spectral image classification

I am working on my master thesis which is a classification task and I aim to use sparse recovery technique. I am trying to implement several methods to recover the corresponding coefficient. The ...
1
vote
0answers
35 views

How to code this autocorrelation-related problem in MATLAB? [closed]

I am trying to implement the autocorrelation-method (also known as Yule-Walker method) to estimate the model parameters of an AR model, from the book Statistical Digital Signal Processing and ...
0
votes
0answers
27 views

modify main sound with second sound (matlab)

So i have 2 sounds. Main sound and second sound which represents "parking garage" effect. So i want to modify main sound that sounds like it's playing in parking garage. ...
-1
votes
1answer
98 views

Add echo as described by difference equation to audio signal (in MATLAB) [closed]

A simple linear system is echo. It can be described by equation $$ y[n] = x[n]+ k\,x[n−d], $$ where $n$ represents sample index, $k$ represents an attenuation coefficient, and $d$ represents time lag....
1
vote
1answer
42 views

Simplest way to generate AR(2) process on MATLAB

As part of a project I need to use autocorrelation method of estimating model paramters of an autoregressive process on MATLAB. Can anyone tell me the simplest way to generate an AR(2) process on ...
0
votes
2answers
28 views

How to reduce time consuming for calculating pseudo inverse of large matrix in matlab?

I have a matrix P = randn(45875x65536 ); Pi = pinv (P); I tried to run this code in matlab, but it takes long time is it possible to split the matrix into ...
-1
votes
1answer
30 views

problem finding 16 point DFT using two 8 point FFT (Divide and combine algorithm) MATLAB [closed]

Write MATLAB code that determines and plot the N-point Discrete Fourier Transform of x[n] defined by the following equations: x[n]=0.5*pi*n n=0:16 Compute and plot 16-point DFT using two 8-...
0
votes
1answer
38 views

How can I generate time-variant Rayleigh channel in MATLAB

One of known models for channel simulation is called Rayleigh Fading channel, it's usually used to simulate wireless channel in time variant/invariant. As I know, Rayleigh fading channel can be ...
1
vote
2answers
44 views

How to plot and normalize a spectrum in matlab

I am given the coefficients of an FIR filter. I have created its impulse response through a convolution with a unit pulse. Now I want to plot the frequency spectrum. I perform zero-padding and ...
0
votes
1answer
21 views

Variance of a histogram in matlab

my doubt is about a vector of values that I have and which histogram is the following one: The function I used to create the histogram was: ...
3
votes
0answers
55 views

How to implement the RLS for matrices

I need to implement the RLS algorithm but it's for matrices instead for vectors, I have made the below code, but still something wrong is not working well, EDIT: The code should be done as below, ...