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?
0
votes
1answer
50 views

Correlations of matrix

I have a matrix of 10 column, each column has measurements at different times. I have a second matrix also of 10 columns, each consisting of measurements at different times. I want to carry out cross ...
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 ...
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
3answers
55 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
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 ...
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
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
265 views

What is wrong with my residue partial expansion method? (Transfer Function into State-Space Modal/Diagonal Form)

I'm using reference from here and here. This is Laplace transfer function of DC Control Speed System: $$\frac{\omega(s)}{V(s)}=\frac{K}{(Js+b)(Ls+R)+K^2}$$ Where, $\omega$ is the motor angular ...
1
vote
1answer
116 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 ...
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: ...
1
vote
1answer
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') ...
0
votes
1answer
72 views

Classical spectrum analyzer model

I am trying to reproduce a numerical model of classical spectrum analyzer, described in "Fundamentals of Spectrum Analysis" by Christoph Rauscher. Classical model consists of a few local ...
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
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
1answer
289 views

How to use the iircomb filter in matlab

I have a sound file that needs filtering which looks like this: Hence I think that I have noise spaced equally at 832Hz. i tried to use the iircomb filter taken from mathworks website and i managed ...
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
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 ...
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....
1
vote
1answer
22 views

Feedforward disturbance signal compensation

The reference Feedforward control concepts through Interactive Tools says, to minimise the effect of the disturbance $d$ on the process output $y$, a compensator $G_{\text{ff}}=P_3/P_1$ shall be used. ...
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
1answer
33 views
0
votes
1answer
51 views

Optimal pulse shape for minimal interference in adjacent frequencies

I need to find an optimal pulse shape, that convoluted with matched filter on adjacent frequency will give minimal convolution/correlation (Minimal interference) for a given pulse length. For ...
-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
38 views

How to simulate a signal of a particular frequency according to the number of points in a period of the signal?

I have one period data ($n$ points in total) of a signal. I want to generate a periodic signal with a total of $m$ points and corresponding signal frequency of $F$ according to this data. How do I do ...
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 ...
0
votes
2answers
135 views

How to extend line until end of image

Lets say, i have a line and i want to extend the line until the end of the image. The line is displayed in the first photo with the green is my basic line, i want to extend it like the second image, ...
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 ...
6
votes
3answers
2k views

Convolution of Signal with a Wavelet

I know that the complex wavelet transform is given by $$\int_{-\infty}^{\infty}f(x)\psi^*_{s,u}(x)\,dx$$ where $f$ is the signal, $\psi_{s,u}(x)=\frac{1}{\sqrt{s}}\psi(\frac{x-u}{s})$ is the wavelet. ...
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 ...
2
votes
1answer
1k views

How does `envelope` use the sliding window to determine RMS in MATLAB?

I am trying to understand how does the sliding window works when using the function envelope in MATLAB to calculate RMS (root mean square). I'm using the following ...
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 ...
2
votes
2answers
131 views

Radar for Vital Signs – Matlab Simulation

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: ...
2
votes
1answer
82 views

Verifying LDPC matrices in CCSDS blue book

My understanding is that LDPC is a linear block code such that its generator matrix $\mathbf{G}$ and parity check matrix $\mathbf{H}$ satisfy $\mathbf{GH}^T=0$. I am using the CCSDS blue book here as ...
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 ...
1
vote
1answer
688 views

windowed sinc filter in matlab

Hello i'm designing a low pass filter windowed sinc in matlab ...
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
104 views

How to perform dechirping of SAR image in MATLAB?

I have the transmitted pulse and the raw SAR image before range compression (dechirping). I understand the pulse compression its a convolution along the columns but I am not able to make it work. I've ...
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
3answers
131 views

How to find the time of beginning of the slope of the signal?

I have a time signal in MATLAB format. Sampling rate is 100k, so it is roughly 5 seconds of signal. See the link below https://www.dropbox.com/sh/v7vev2j14i77mlk/AAA-X7JGMAzO6IyElYmFPFwra?dl=0 If ...
0
votes
1answer
107 views

frequency domain to time domain with magnitude and phase

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....
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. (...
2
votes
3answers
13k views

FFT Zero Padding - Amplitude Change

I'm just learning about Fourier Transforms and as an input I'm using a WAV file (Matlab) and taking one channel of it and performing a quick Fourier transform. I've zero padded the input, as I've been ...
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
2 3 4 5
52