# 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,463 questions
Filter by
Sorted by
Tagged with
24 views

### Zero Meaning a Hamming Window in Matlab

I am still relatively new to signal processing and MATLAB and am working on a short-time fourier transform of some data using a prexisting code. Within the code a Hamming window is produced and ...
10 views

### MATLAB: Prepare an RGB image for digit and letter recognition

I need a Matlab function that prepares an image for digit and letter recognition. What I need now is to convert the original RGB image to a binary image that every pixel in it is white except the ...
24 views

### Unable to estimate for AR model using OLS, Yule Walker and MLE

I am learning estimation methods following the book of Steven Kay, "Fundamentals of Statistical Processing, Volume I: Estimation Theory " Theory says that if the measurement noise is ...
17 views

### Relation between ICI and EVM in OFDM System

in an OFDM system with ICI, how can I calculate the ICI power using the error vector magnitude (EVM) constellation? thanks
24 views

### What is sampling frequency in this case?

I am using Matlab fdatool to implement highpass IIR butterworth filter But 'Fs' value cell is gray and i am not able to change sampling frequency, what is the actual value in this case of attached ...
23 views

### How to adjust sublabels of compare() (MATLAB-function)?

Here is my MWE: ...
22 views

### IIR bandpass filter with very low corner frequencies

I'm trying to get in the MATLAB Signal Processing Toolbox a bandpass IIR filter having the following specifications: pass-band [0.1-0.5] Hz and stop-band attenuation 30 dB. I'm using the following ...
64 views

### Differential Encoding for M-PSK

Confused about a few topics w.r.t. differential encoding/decoding. First, consider the below BER curve taken from wikipedia ( https://en.wikipedia.org/wiki/Phase-shift_keying ) comparing BPSK/QPSK and ...
33 views

### Side lobe reduction [closed]

How can side-lobes be reduced in an Level-1 SAR image in Spatial Domain?The input here in this problem is an complex SAR image?which parameters(like amplitude) of SAR image should be considered mainly ...
26 views

### brightest amplitude of an image pixel

How can amplitude of an image pixel be calculated?Do we need to perform any FFT on the image? and how to find the brightest value among the amplitudes in python or matlab?
20 views

### Why is mean-square summation of the area under the curve?

Would someone please kindly help me to nail this "simple" issue? My input is a matrix of power PSD and frequency. I need to get RMS and I read this http://vibrationresearch.com/wp-content/...
30 views

### How can I find the delay between two signals? [duplicate]

I am using NARX in Matlab. Is there any method to find the delay between input and output signals? My aim is to decrease memory length by finding the delay. TIA.
16 views

### How to use Joint Probabilistic Data Association Filter (JPDAF) for varying number of targets?

I have been working on JPDAF for two days, and I have to implement it using varying number of targets. As far as I studied, it is mainly used for fixed number of targets. I have studied different ...
59 views

### How to removed ripples cause by zero-padding in fft?

Desired outcome: Interpolation in frequency domain Attempts: Zero padding when doing fft Problem: Ripples in frequency domain appeared after fft with zero padding Code to reproduce the problem: ...
149 views

### Autocorrelation and Spectrum Density

Wiener–Khinchin theorem states that autocorrelation function and power spectral density are a Fourier-transform pair - see Wikipidia (and lots of other resources). That means autocorrelation should be ...
18 views

### Matlab CIC decimator output mirrored

I am trying to use the dsp.CICDecimatior function and comparing the output to a C code algorithm that I have. The CIC decimator is configured as decimation factor of 8 , 3 sections and differential ...
47 views

### MTI RADAR, DSP algorithm question

Im new to RADAR signal processing. I using this doc for ref: https://www.mathworks.com/help/phased/examples/ground-clutter-mitigation-with-moving-target-indication-mti-radar.html I trying to rebuild ...
10 views

### Very stiff state space matrices after linearizing my Simscape model

I want to simulate and build a furuta pendulum from scratch as a project. Currently I´m having some difficulties with the simulation of my model in Simscape and I can´t figure out what´s wrong with it....
96 views

### Designing appropriate filter by choosing values for $A$ and $B$

Let $$y[n] - ABy[n-1] +A^2y[n-2] = x[n] - Bx[n-1] +x[n-2]$$ Where $A$ and $B$ are constants. Also there are two sounds which have $400$ hertz noise and the sampling rate is $8000$ samples/sec. The ...
12 views

### What components that I should have in using PCA to denoise noisy ECG signal?

I know that I have to have more than one component to use PCA method to process some signals. But I only have one noisy ECG signal that has to be denoised. What other components in PCA beside the ...
18 views

### Error Implementing 2DTDOA in Matlab

Hello i'm trying to implement a basic TDOA without noise and solve the hyperbolic TDOA equations using Fang's solution but i end up with a complex number as a coordinate (negative solution), what can ...
39 views

### porting matlab code on to TI OMAP L138

I have already working matlab based code for an application. i want to port on to OMAP L138 using matlab coder. I have some queries related to this Is it possible to do on a omap based custom board.?...
34 views

### Group delay plot of a Moving average filter

I am implementing the moving average filter in Matlab. Using fvtool on this filter, gave the following output curve, is this group delay curve correct? Edit: My confusion is regarding the values of ...
52 views

### Moving Average Filter's Magnitude Response

I am working on filtering of data using the Moving average filter in MATLAB. My data is recorded temperature values on the Y-axis and Time(in seconds) on the X-axis (I'm getting the magnitude response ...
53 views

### How to calculate sine wave SNR from oscilloscope

I'm trying to calculate the SNR of a sine wave produced with a 12 bit DAC. I'm new when it comes to calculating/measuring noise in signals. My idea was to capture the signal using an oscilloscope (...
59 views

### Frequency conversion in IIR lowpass-to-lowpass transformation

We use $\ z^{-1} \xrightarrow{} \frac{z^{-1}-\alpha}{1-{\alpha}z^{-1}}$ and $\alpha = \frac{\sin(\omega_c^{'}-\omega_c)/2}{\sin(\omega_c^{'}+\omega_c)/2}$ for a lowpass-to-lowpass frequency ...
113 views

### Speech recognition algorithm in GNU Octave to convert speech to text (and vice versa)

Recently, I am building an application in Octave and I saw some algorithms about speech recognition spread around the net, but most of them were implemented in Python, MATLAB, C++ and no one in Octave....
41 views

### How to quantize filter coefficients to 10 bits

I am trying to learn digital filter design. One of the concept is quantization of filter coefficients. I used Designfilt to design an lowpass IIR filter and obtained coefficients. Now I want to ...
23 views

### formulas for passband ripple and stop band attenuation?

I am reading the proakis book"DSP USING MATLAB 3rd Edition" In chap 7, article 7.3, i came across example 7.8,where i saw formulas for pass band ripple and stop band attenuation I have ...
58 views

### Setting Parity Check Matrix for LDPC channel coding

I am trying to implement the LDPC code for OFDM system, where I input data should be binary of length $1024$ and the output coded data of length $2048$ (means of rate 1/2). As known in Matlab ...
27 views

### Are there any tools for generating fixed point filter implementations?

It's very easy to make a filter in Scipy or many other tools, but implementing this filter in fixed point in C or VHDL/Verilog is always a chore. I mean, in theory it's just a matter of adequately ...
42 views

### LPF Filtering without changing DC value of signal

I have sampled my transmitted signal, it's looks like sinusoidal , frequency sampling is =2048Khz, bitrate of transmittion=100Kbaud , and my problem is that I have designed in matlab my LPF filter ...
31 views

### Interpreting the cross correlation results

I am new to this forum. I am just trying to understand how to calculate delay (in terms of samples) between two signals using cross-correlation function. I wrote a small Matlab code in order to ...
46 views

### Expressing DTFTs in terms of one another with similar time domain signals

I cam across a question in my DSP book asking this: 1). Express $X_2(e^{j\omega})$ in terms of $X_1(e^j\omega)$ without explicitly computing $X_1(e^{j\omega})$. ($X_1(e^j\omega)$ represents the DTFT ...
61 views

### Convolution : Anechoic Speech signal and Impulse response

I am trying to perform convolution in MATLAB of an anechoic speech signal (2.1 s) and a impulse response (20 s) using the following code: ...
51 views

### Why i am not getting low pass output despite the fact that my code is for Low pass?

I have tried to make a function to implement Low pass filter using butter worth technique,and i have taken code from different places in article 8.3 of proakis book,"DSP Using Matlab 3rd Ed" ...
35 views

### BER for OFDM-QPSK over Rayleigh Channel

The rayleigh channel is a single tap. ...
27 views

### Matched filter for recieved RF digital packet by LPF

Im transmitting by cc1350 launchpad microprocessor digital RF Packets, transmitted modulation FSK. bit rate of transmitting is 50Kbouad, frequency of transmitting is 868MHZ . Im sampling the signal(...
30 views

What is the proper formula for converting ordinary frequency to normalized edge frequency in matlab for use in filter design commands like cheby2 etc The wikipedia page shows three different formulas ...
42 views

### Having converted a grayscale image to binary using im2bw(), is the converse operation possible?

I have converted a gray-scale image to binary using im2bw() now i wanna do the opposite. How can I do that in MATLAB?
51 views

### filtering my received Signal by LPF

I've received my transmitted signal that I sampled it on 20480000 frequency , transmitted frequency 868MHZ , bitrate 100KHZ , I see the "bits" that Im transmitting in my plot in matlab it ...
37 views

### Confusion implementing chebyshev type 2 band pass filter in matlab

I want to design a band pass Chebyshev Type II filter using analog prototyping. The order of filter is 20 with a value of 60 dB stop band attenuation and 0.75 dB pass band ripple where, Pass band edge ...
55 views

### How to use Octave ellip() coefficients for 3-band C++ crossover

I have been working on making a 3-band audio crossover in C++, with the goal of activating/deactivating a different device depending on whether the low, mid, or high range of the input is above a ...
20 views

### Converting Received RF packets to binary file that RF packets sampled by dongle rtl-sdr

Im using #SDR software that I transmit packets from cc1350 launchpad to the air and I want to validate that if those packets are valid or not by checking its CRC. my problem is actually the step to ...
30 views

### Python equivalent code for Matlab bandpass function

I have used a bandpass filter function in Matlab as follows ...
77 views

### Phase Spectrum in Fourier Transform

Probably a simple question to answer. I have been trying to use the fft function in MATLAB and have been succesful to get the amplitude spectrum of a known signal. But when working out the phase ...
50 views

### How to compute transfer function $G(s) = \exp \left( - \sqrt{s} \right)$ in Matlab / Simulink?

How to compute transfer function $$G(s) = \exp \left( - \sqrt{s} \right)$$ in Matlab / Simulink? I am trying to calculate a PID controller for this function. This function describes heat transfer via ...
28 views

### Matlab: xcorr: Having trouble when I try to calculate delay between two sinusoids

I have a problem when I try to use Matlab built-in function for cross-correlation 'xcorr'. Background: I created two sinusoids, one of them delayed in time. I choose center frequencies of these ...