Questions tagged [matlab]

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

Filter by
Sorted by
Tagged with
1
vote
0answers
22 views

How to design a good IIR smoothing filter?

I need to design a smooting filter for computing the envelope of a signal. My specs in Matlab are ...
0
votes
0answers
18 views

MATLAB “conv”command valid/legal for both causal and non causal signals?

Can we use the built in MATLAB command "conv" for both causal and non causal signals/sequences?
1
vote
0answers
10 views

Calculate ScaleVlues of IIR Filter manually from sosMatrix of MATLAB

while using "design" in matlab to design filters, at the output we can see a ScaleValues matrix that is used to compensate for overflow problem. my question is that how this matrix is ...
0
votes
0answers
17 views

How to start learn VMD?

Can anyone please suggest books or resources related to variational mode decomposition (with matlab application)? It was suggested to me to understand the intuition behind ADMM first. However, I am ...
0
votes
0answers
32 views

Rectangular Pulse Train Code

So I wrote some code to find the coefficients of a periodic sequence. I'm working through example 4.8 of Dimitri's Applied Digital Signal Processing and have come up with an issue. I found the ...
0
votes
0answers
20 views

understanding the result of the simulation of In-phase and quadrature part BPSK signal

I am a student and working on a hardware implementation of a transceiver and going to check an algorithm of time recovery that includes symbol synchronization and sampling clock synchronization. The ...
4
votes
1answer
60 views

Transfer function with blackbox modelling is too slow compared to real expectation

I collected this data from a robot that drives with its wheels up. The blue curve is the voltage and that is my input. The orange curve is the wheel velocity and that is my output. I want to create a ...
0
votes
1answer
26 views

What is the input dimension for LMS update algorithm

I just realized this forum existed, posted my question on the wrong forum. Sorry about the formatting, please don't hesitate to ask if any part of this post is unclear. This is my first post. I'm ...
0
votes
0answers
34 views

How to create/find a dereverberation filter?

I want to find the coefficients of dereverberation filter in MATLAB. How to do that? I have found the coefficients of reverberation filter: ...
0
votes
2answers
49 views

Generate binary signal and convert to integer in Matlab

I am going to test an algorithm and need a test signals. My first test signal is a binary signal of 1 or -1. I was thinking about how to implement such a sequence in matlab and wrote this: ...
0
votes
0answers
27 views

Bandpass filter vs sequential high and lowpass filter in Matlab: weird difference

I am trying to bandpass a neural signal acquired at 20kHz between 0.5 and 100 Hz. I have tried to do it in two ways. The first way is to sequentially highpass and lowpass the signal and the second one ...
1
vote
0answers
23 views

Laplacian filter in matlab

I want to compute the output image by first dividing the image into 8*8 blocks and applying laplace filter separately and combine them but I am not getting the correct output Here is the code: ...
-4
votes
0answers
23 views

HOW TO DEAL WITH SQNR IN MATLAB

Given the digital speech signal in the file guitatune.wav, Write a MATLAB program to a) Read the audio file and find sampling frequency. b) Quantize (using 4-bit quantizers to obtain the quantized ...
0
votes
0answers
39 views

NaN values with correlation metrics

I am using the Peak to Correlation Energy (PCE) Metric to measure the similarity between two images using MATLAB. In some cases, the PCE value obtained is NaN. How can I solve this problem?
3
votes
2answers
77 views

DTFT of sine wave using freqz

As mentioned in the title, is it possible to use freqz to find the DTFT of a sine wave? I am confused about what the 'a' and 'b' vectors would look like, since there are only impulses in the numerator....
0
votes
0answers
16 views

image processing, edge enhancement

*Hello I used k mean method to detect edges and that’s my results as shown in the pic but I want to get more accurate results so I need to enhance my edge detection more what methods would you suggest ...
0
votes
0answers
27 views

Filter length (N) has no effect on the reconstructed signal & Toeplitz Matrix

Hello Signal Processing community, I implemented a filtering algorithm called Minimal Mean Squared Error in Frequency domain with N-coefficient and Signal Detection (FMSENSD) in MATLAB, I got some ...
1
vote
1answer
65 views

A Fast Power Grid Frequency Estimation Approach Using Frequency-Shift Filtering using numerical example

I have read the paper A Fast Power Grid Frequency Estimation Approach Using Frequency Shift Filtering. I want to prove it using a numerical example, I have problem how to calculate the ...
-1
votes
1answer
41 views

How to find a pixel's image coordinates by its rgb value in MATLAB?

The color value of the pixel that I want to find is $RGB=(144,127,11)$. Is there any function or quick way I can get the pixel's image coordinates in MATLAB?
0
votes
1answer
44 views

Concept of energy threshold

I am analyzing some program responsible for detecting the correct signal in the channel on the receiver side. It seems to me that such an implementation allows for the detection of the correct packets ...
4
votes
2answers
143 views

Does MATLAB code retain its accuracy when is executed in dsp kit?

Ladies, Gantlemen, Please let me ask your help on my problem. MATLAB code (at https://metrw-pitch.blogspot.com/ you can see code in .mlx (for run it you want delete comments) and .m format) executing ...
0
votes
0answers
11 views

Simulink ; Code Generation ; Configuration Parameters : how can I activate the Test Bench Configurations?

FFT_HDL_Block im Simulink in the Matlab Help it says that in order to activate the Configuration panel I need to make sure that the system is selected as DUT and not as Entire Model. but where I can ...
0
votes
1answer
48 views

Phase angle between two harmnic orders

I am trying to get the phase angle between 5th harmonic and the fundamental harmonic of a 50Hz current signal sampled @10kHz. I am doing the following: 1- take a window of 200ms and apply matlab ...
0
votes
0answers
32 views

How can I generate an ideal 2D low-pass filter in MATLAB?

I've been tasked with creating a 32 x 32 half-band low-pass image filter in MATLAB. My thinking is to generate the ideal filter mask in the frequency domain and compute the corresponding convolution ...
1
vote
0answers
50 views

How to estimate the spectrum as precise as possible?

I am trying to estimate the main frequency component of my acceleration signal. As I read several papers and the MATLAB documentation the MUSIC-algorithm is a good way to estimate the frequency with a ...
3
votes
0answers
74 views

CIC filter internal register truncation

I try to implement CIC filter with truncation in hardware, but there is some misunderstanding. For some reason the output signal is broken. My filter is N = 6, R = 20, M = 1, Bin = 16, Bout = 16. (...
0
votes
0answers
22 views

Cross-correlation estimation in MATLAB using a method similar to pwelch for the PSD

Is there a function in MATLAB to estimate the cross correlation function of two wide-sense stationary signals (or the autocorrelation of the signal with itself) in a way similar to the estimation of ...
0
votes
0answers
8 views

Obtain clear fringes from interferometer

I have just begun setting up an interferometer to take some measurements. I am trying to reproduce one paper I found in literature for 3 DoF homodyne interferometry. The detector is merly a CMOS ...
0
votes
0answers
31 views

Confusion about spectrograms: conceptual problem

The following code generates a spectrogram as shown in the image. The matrix s which is the spectrogram is of size 129x40 for a ...
0
votes
0answers
19 views

How to install FCLAB for EEG connectivity calculation

I am doing about another person question here, so the question is: How I could do EEG functional connectivity calculation by Matlab? So I have googled the EEG functionality and find two plugin by ...
-1
votes
0answers
35 views

What is the computational complexity of the MUSIC algorithm?

I am trying to compare several methods for frequency estimations. Does anyone know the computational complexity of the MUSIC algorithm? Thank you in advance!
1
vote
1answer
48 views

Filtering sidelobes

Good evening to everyone, my question is probably trivial, but I'm new to DSP. I have a tone at the frequency 0.5 Hz, amplitude 0.001 V, and with a big DC component of 0.5 V. This signal is sampled at ...
1
vote
2answers
111 views

Simulating a raised cosine filter

I am rewriting a simulation written in Matlab to C. I have a problem with a transmit data. The data is filtered by a raised cosine filter. In Matlab it was implemented by using the following function ...
0
votes
0answers
51 views

Matlab group delay not corresponding to reality

I studying effects of digital filters group delay (IIR). In Matlab there is a function grpdelay which allows for particular frequency get a value of delay in samples But after filter applying and ...
0
votes
2answers
42 views

Convergence of a finite series on MATLAB

If I have output values of a signal $y$ (or series) stored in a $1\times N$ matrix, where $N$ is finite. Is there any MATLAB code or function I can use to determine if the signal converges or diverges?...
1
vote
1answer
34 views

Offset after Butterworth bandpass filtering

guess I'm stuck with this filtering problem and I'm thinking it has something to do with my raw data but I'm not so sure. So the problem is the following, please refer to the figures below, basically, ...
0
votes
1answer
20 views

Issue with demonstrating amplitude modulation of sinusoid using MatLab

I am trying to demonstrate Conventional and DSB-SC modulation of a signal $ \sin(2\pi1000t) $ using MatLab. My carrier signal is $ \sin(2\pi f_ct)$ where $f_c = 100\text{ MHz}$. Now according to ...
0
votes
0answers
22 views

Feedback command for MIMO systems in matlab

I have a state space model with 12 outputs and 4 inputs. I want to close the loop of 8th output with 3 input. then in outer loop i want to close outer loop for 1 output and 3 input again (Quadrotor ...
0
votes
0answers
46 views

FM modulation - recovering bits

I'm trying to complete one task: Download some FM modulated signals from page http://www.w1hkj.com/modes/index.htm. Calculate their spectrograms, i.e. short-time Fourier transform. Observe different ...
3
votes
1answer
57 views

Creating a PAM function with Matlab

So I need to make a function that will be called as function [t, pulse] = PAM (array). My function should have a result like this when I use ...
0
votes
0answers
29 views

How to scale up the theoretical graph BER vs. Eb/N0

I would like to draw a graph presenting a correlation between BER (bit error rate) vs. distance for different bit rates for 16 QAM with bandwidth of 2.4 GHz. $$ k=\log_2 M, \quad\text{where}\quad M=16 ...
2
votes
1answer
71 views

Filter Cascade: Additions and Multiplications per input sample

Recently I was reading "Optimum FIR Digital Filter Implementations for Decimation, Interpolation, and Narrow-Band Filtering) by Crochiere and Rabiner (1975). To estimate the number of decimation ...
2
votes
1answer
51 views

How can I get the function of a curve from a dataset without using a curve fitting tool?

previous relevant question here. I have a dataset of a signal captured from real hardware that produces a curve. Depending on the curve characteristics I can determine whether metal is present or not ...
0
votes
0answers
16 views

Stopband's edges in bandpass IIR filter in MATLAB

I've tried to get an IIR bandpass filter having the passband [0.1,0.5] Hz and working at the sampling frequency 8 Hz using the following command: ...
3
votes
2answers
74 views

Can I get more information from this signal other than magnitude?

First a bit of background. I'm working on a metal detector that produces a pulse across a coil. The pulse signal is influenced if metal is present within the coil aperture.This link provides more ...
3
votes
1answer
175 views

The Proper Way to Do Sinc Downsampling (DFT Downsampling) for Uniformly Sampled Discrete Signals with Finite Number of Samples

Given a signal $ \left\{ x [ 0 ], x [ 1 ], ..., x [ N - 1 ] \right\} $ what would be the correct way to downsample it in the frequency domain (Sinc interpolation)?
1
vote
2answers
83 views

Difference between $\tt fft$ and $\tt dftmtx$ in MATLAB

I have the following MATLAB code: ...
0
votes
0answers
32 views

How to properly extract FIR filter from two .wav recordings using fft?

I'm relatively new to signal processing and I got a task to extract a filter from two .wav recordings with sample rate of 16000 and apply to other recording to see if it actually works. Brief: I have ...
0
votes
1answer
44 views

Is Step the same as an Impulse + 1/s?

Isnt a Step (as a Transfer function -> $ \frac{1}{s} $) and Impulse (trans fcn -> 1) therefore Impulse + $ \frac{1}{s} $ should be equal to a Step in Simulink ...
0
votes
1answer
90 views

Doubt: Signal detection in noise Part 1

I have a confusion regarding the matched filter detection technique. I have a binary information source signal $s(t)$ that is corrupted by additive White Gaussian noise $w(t)$ at a particular SNR. The ...

1
2 3 4 5
52