Stack Exchange Network

Stack Exchange network consists of 175 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
0answers
11 views

How do i Show this in the Frequency domain with Matlab

Convert time domain to frequency domain in Matlab, these ECGs are plotted together in the time domain and i wish to duplicate the 3 in 1 window in Matlab by doing the fft. My graphs look weird, any ...
0
votes
0answers
9 views

FIR band pass filter desiging using PSO technique [on hold]

Can anyone help me in writing matlab code for optimization of filter coefficient of FIR band pass filter using PSO algorithm?
0
votes
0answers
4 views

Comparison Between Mahoney Filter and Kalman Filter in Euler Angles (Yaw, Pitch, Roll) Estimation

What are the advantages of Mahoney Filter over Kalman Filter for Euler Angle (Yaw, Pitch, Roll) estimation? Could anyone compare them for Angular State Estimation? Resources Mahoney Filter ...
0
votes
0answers
10 views

Parity Check matrix from degree and check nodes polynoms, LDPC codes

I'm trying to simulate LDPC codes which were optimized for the BEC channel. I generated the degree and check nodes polynomials according to chapter 3.15 in "Modern Coding Theory" by Richardson and ...
0
votes
1answer
9 views

MATLAB & Power Spectral Density - Error - Getting the same range of values regardless of sound type?

I wrote code [attached at end of question] to take .wav files of child vocalizations and tried to see if there are valid ranges for the formants F1:F2:F3 for the 5 ...
0
votes
0answers
12 views

Getting SNR of reconstructed signal in MATLAB

I am trying to run code to compare the efficiency of various basic sampling methods such as ideal sampling, natural sampling and so on. I want to then use average power to see how accurate the ...
1
vote
2answers
43 views

Detecting a three-tone signal in real-time

I'm new to digital signal processing, and I've been looking into FFT, filtering, Matlab etc. What I'd like is to build a program which will detect when a certain BEEP is transmitted through a trunked ...
2
votes
0answers
27 views

Is it possible to approximate certain skewness and kurtosis values using an IFFT?

I have time domain data for a signal that behaves randomly but has non-random (non-Gaussian?) skewness and kurtosis values of ~0.9 and ~7.4, respectively. The FFT of the signal shows that it's not ...
1
vote
2answers
27 views

Confused in difference between sequence versus signal?

I am learning basics of signals and systems with MATLAB If i create a vector in matlab such that x=[ 2 5 10 20], will it be considered a sequence or a signal? As ...
0
votes
1answer
22 views

Matlab: Different 1-D FFT results with and without zero-padded

Recently I am implementing FFT with C code. So I use Matlab for algorithm verification. As Radix-2 FFT was chosen, I've learned that zero-padding technique could help to reach 2^N limitation without ...
-4
votes
0answers
28 views

Convolution vs multiplication?

What is difference between signal multiplication and convolution between signals? DSP textbooks use symbol '*' for convolution,but if we use this symbol in MATLAB we will get result of multiplication?...
0
votes
0answers
13 views

finding harmonics from fundamental

https://s3.amazonaws.com/izotopedownloads/docs/rx700/en/interactive-tools/index.html#selection-tools From the above link, under the "Magic Wand" tool description, how does that algorithm work? In RX,...
0
votes
0answers
11 views

Aperiodic Correlation function using FFT Method

Periodic correlation function between two binary sequences say x and y can be computed using FFT. corr_value = ifft(fft(x).*conj(fft(y)); Can some one please help on how to compute aperiodic ...
0
votes
1answer
36 views

Confusion in linearity?

I am studying linear systems from the book "Signals and Systems Laboratory with MATLAB". I have performed an example on MATLAB myself in this regard. Code is as follow: ...
0
votes
0answers
15 views

I want to create a signal in time domain using gauspuls command in Matlab, and plot the same in freq domain to check?

I have got a code from (www.simsonic.fr) which takes input as fractional BW, time and centre frequency, and gives in phase pulse and envelope as output. But my concern is how can I check if the signal ...
0
votes
0answers
12 views

Range of updated/new time axis after upsampling?

I am reading the book "Signals and systems laboratory with MATLAB" by Alex Palamides and I am reading system properties on pg 154 of the book but I am confused about an example shown in attached photo....
0
votes
0answers
22 views

Using MATLAB to plot the input and the magnitude spectrum of the signal

I have an aperiodic signal $v_{out} = e^{-t} u(t)$ (real exponential signal) from discharging capacitor. I was trying to plot using MATLAB 15 seconds of this signal in time domain? I am thinking how ...
0
votes
0answers
26 views

I want to plot a gaussian pulse in MATLAB in the frequency domain, with its centre at the highest value

I have tried one way but i am getting 2 peaks at the edges as shown in the picture. I have used 1 part of my code for the signal generation where i used the gauspuls command (reference: www.simsonic....
0
votes
0answers
34 views

Speech processing using matlab

My teacher gave me a project speech processing using matlab. I've completed up to point 6 but I do not know anything about points 7 and 8. Is there anyone who can help me please
-1
votes
0answers
14 views

fourier descriptor in matlab

My instructor provide me coordinates (see here) of a hysteresis curve and asked me to find fourier coefficient of the curve. How can do that please help me. please provide source.
1
vote
0answers
37 views

persist state of digitalFilter

Suppose I created a digitalFilter using designfilt (in matlab). I am interested in using it to filter windows (I dont have the whole data set offline). When I call filter() with this filter and a ...
1
vote
1answer
29 views

Normalizing vectors to be the same size to retain PSD data

Context: PSD=periodogram(y) in MATLAB gives the PSD (power spectral density) estimate of a sound-source signal. I want to find the local maximum within 3 different ...
0
votes
0answers
7 views

I want to calculate two parameters related to Bone characterization namely BUA or Broadband ultrasound attenuation and Speed of Sound in MATLAB

I am using Simsonic software(http://www.simsonic.fr/) to generate 2 signals 1) for plane water(2D) width 45mm, and 2)for bone specimen 30mm width in the above vat. I am centering my source at 5mm and ...
4
votes
2answers
159 views

Removing step-function like noise from signal, knowing when the step functions occur

So I currently have a system which is fit for very short time measurements. Whenever a measurement is long, however, there is a need to continuously update the reference, which, each time, will ...
1
vote
0answers
29 views

Equivalence of the Power Spectral Density definitions

I am trying to show the equivalence of the following Power Spectral Density definitions in Matlab: Definition 1: $$ P(\omega) = \sum_{k=-\infty}^{\infty} r(k)e^{-j\omega k} $$ Definition 2: $$ P(\...
0
votes
1answer
29 views

Alternate Octave Commands for Matlab

can you tell me how to write video data to file.. what is the alternate of these 4 commands in octave ...
0
votes
0answers
8 views

Why is correlation involved? - Axis Rescaling for a 2D axes - brightfield illumination microscopy of blood cells

for 1D axis rescaling, you use a FOV calculation len_pixel=total_magnification * len_specimen_in_pixel len_specimen_in_pixel=len_pixel/total_magnification and then to get the axes rescaled, you do ...
0
votes
0answers
9 views

PATMAX / Flexible ROI for matlab

I just googled for some hours if there is any toolbox / library for MATLAB with which you can realize something similar like PATMAX does for cognex cameras. I want to add flexible ROI for moving ...
0
votes
0answers
36 views

Remove background noise from audio signal

I am looking for a python or matlab code to take an input audio signal, process it and remove any background noise other than the infant cry such as vehicle noise or a human talking noise and get the ...
1
vote
2answers
49 views

Beat detection in Matlab or Python

Try to determine the start time and duration of each "beat" in an audio signal (circled in figure below). It looks like a simple question, and python or Matlab should have toolbox/functions to do this,...
0
votes
0answers
8 views

getting channel matrix from rayleighch matlab object

If I use "rayleighchan" of the communication toolbox, and I set the Doppler frequency, number of paths, path gain, etc . How can I extract the channel response to use it in MMSE channel estimation?
0
votes
1answer
25 views

Discrete-time, second-order section, direct-form II filter

I found dfilt.df2sos in Matlab and trying to figure it out how do I do that in Python? Is there any function that works similarly with the Matlab function? I also ...
1
vote
1answer
58 views

Amplitude and Phase of FFT gives messy results - Matlab [closed]

I'm trying to calculate the spectrum magnitude and phase of a signal, but when I plot them I get pretty messy results: The signal is displayed on the right, then I have the magnitude and phase of ...
0
votes
1answer
44 views

Reconstructing a signal from FFT by adding individual signal components

I'm attempting to reconstruct a signal from the DFT of the signal. I tried to do it by extracting the individual sinusoids and adding them up, but the answer I get is incorrect. ...
1
vote
1answer
73 views

Moving average filter for sound in MATLAB

y[n] = b0x[n] +b1x[n-1] I have this MA filter in matlab as following ...
0
votes
0answers
21 views

What would be the input data matrix and target data matrix in MATLAB Neural Network Pattern Recognition toolbox?

I am new to Neural Networks and have no prior experience of AI,ML or deep learning. Please help me out. I have data sets of 10 different kind of hand-motions(Gestures) from M1 to M10. Each hand-motion ...
0
votes
2answers
47 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 ...
1
vote
0answers
19 views

How to add noise with given autocorrelation to signal in Matlab?

My question is a mix of signal processing and Matlab coding. I have an FIR filter with added noise $w_n$ $$x_n=\sum_{m=0}^{N_h-1}h_mg_{n-m}+w_n.$$ Now the noise $w_n$ has the autocorrelation $$E[...
0
votes
0answers
39 views

Calculating impulse response from transfer function

Given the difference equation as 𝑦[𝑛]=5𝑥[𝑛]+5𝑦[𝑛−2] and 𝑥[𝑛]=cos(𝜋𝑛). I would like to obtain the transfer function h[n]. How is that possible manually and on Matlab? Manually it should be ...
0
votes
0answers
19 views

Simulate capture effect in Matlab with LoRa modulation

I have a Matlab code to generate a LoRa signal modulation and demodulation. Now I would like to simulate a capture effect with 2 signals of slighly different powers. I need some help on how to proceed ...
0
votes
1answer
50 views

Why does the representation of the filter matter? How explain it to people outside signal processing theory?

Recently I was able to solve a problem on concerning filtering by changing the representation from zero-pole-gain to 2nd-order-section when dealing with higher sampling rate data. But: What do ...
1
vote
0answers
64 views

signal interpolation (upsampling) by factor 2

The task is to interpolate the signal by increasing the sampling rate by factor 2. Matlab has a dsp.FIRHalfbandInterpolator function. Let's try using it. ...
1
vote
1answer
66 views

Hilbert Transformer processing block by block

I am processing audio and trying to obtain a 90º phase shift when processing block by block. I have implemented a Hilbert Transformer (from Lyon's 3rd. Ed. & MATLAB). MATLAB code below (I believe ...
0
votes
0answers
19 views

BER vs Eb/N0 for BPSK signal with depth of modulation 120 degrees (+-60 degrees)

I want to draw graph of function BER vs Eb/N0 for BPSK modulation with depth of modulation is from –60 to 60 degrees (or from 0 to 120 degrees). Can I use for that MatLab's tool 'bertool', or I need ...
0
votes
1answer
40 views

Why discretize a continuous transition matrix in Kalman Filter?

In the Kalman filter toolbox at http://becs.aalto.fi/en/research/bayes/ekfukf/cwpa_demo.html the example code shows that a function lti_disc is called, which is essentially a matrix exponential ...
0
votes
1answer
40 views

Finding period of a square wave with varying sampling frequency

I have a square wave (0-1.8V) with a varying sampling frequency (from a circuit simulator). It is also not a perfect square wave (the high and low signal could be very close to but not precisely zero ...
0
votes
0answers
24 views

What is meant by labels in 'gaussian shaped labels (reference attached)'?

I am trying to understand MATLAB code and it uses a line like: ...
0
votes
0answers
29 views

Zero padding frequency domain data for improving time domain resolution before inverse FFT

I am working in MATLAB with measured data from a VNA. The bandwidth is 1 GHz from 5-6 GHz with 801 samples in the frequency domain. Everywhere I have read that I need to split the data into 2 parts at ...
-1
votes
1answer
36 views

CWT matlab function [closed]

i'm trying to apply the cwt function from matlab in the first graph and from the different articles that i've read i should get something that shows different peaks to determine the location of damage,...
1
vote
0answers
25 views

How to account for number of electrodes in EEG data while converting to frequency domain?

I have raw data from 64 electrode EEG in CSV format where there are multiple rows and 64 columns. I am using the following Python code to separate the data into frequency bands: ...