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
0
votes
0answers
14 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
9 views

Camera Calibration parameters

After camera calibration using the default set up in Matlab, I realized the principal point and the focal length were ambiguously defined for example P=267.374 +/- 15.389 pixels and the f=2644.344 +/- ...
0
votes
0answers
17 views

How to recover bits coded by different frequency values (states)?

I'm looking for help with one exercise. Firstly I was supposed to download a FM modulated signal. [y,fs] = audioread('signal.wav'); And then I have to recover bits ...
0
votes
0answers
9 views

How Simulink can be used to obtain 64 basis functions of an $8 \times 8$ Matrix [closed]

I had tried to get DCT Matrix for 'cameraman.tif' image in MATLAB using instructions such as imread, imdouble, ...
0
votes
0answers
41 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 ...
0
votes
0answers
24 views

How to plot phase noise spectrum in Matlab

I have a sinusoidal signal that is affected by phase noise (say clock source), I want to plot the phase noise spectrum of this signal. Please guide me on how to do that in Matlab thanks in advance
-1
votes
0answers
27 views

How can i solve .edf.seizure file error? [closed]

I need to read chb01_03.edf.seizures file from CHB MIT database in MATLAB for seizure detection. i execute this command in matlab ...
2
votes
1answer
39 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 ...
-1
votes
0answers
20 views

How can i read .edf.seizures format in MATLAB?

I need to read chb01_03.edf.seizures file from CHB MIT database in MATLAB for seizure detection
0
votes
0answers
27 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
67 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
14 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
142 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)?
0
votes
2answers
76 views

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

I have the following MATLAB code: ...
1
vote
0answers
30 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 ...
1
vote
1answer
29 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
86 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 ...
2
votes
1answer
72 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
0answers
31 views

Creating a prediction from data in MATLAB

How can I create a closed loop system that can guess the input value that is going to return 0 from unknown transfer function. The output of this transfer function is either a positive constant, a ...
0
votes
1answer
23 views

Convolution output signal is very large, do I need to scale inputs or outputs?

I am writing some simple matlab code to refresh my convolution knowledge (it has been awhile) in regards to DSP. I have an input signal x and a filter - ...
0
votes
1answer
27 views

In pulse code modulation what is pulse word represent?

we study lot of things in PCM we do sampling quantization encoding etc but we never come across pulse so what is pulse word represent in PCM
0
votes
0answers
12 views

How to choose between rising and falling edge (e.g. when using a pulse generator)?

In StateFlow, one often uses the command e.g. on clk: count++; I wonder how the clock is counted exactly. Is it the rising edge, or the falling or does it count ...
0
votes
1answer
22 views

Difference between the average operation and the application of the equivalent LPF

I would be glad if someone could answer my question. I have a bit stream of data and I want to extract the low frequency component. When post processing the data I can calculate the average value over ...
0
votes
0answers
12 views

maximum correlated kurtosis parameters

I want to use maximumu correlated kurtosis method described by McDonald to the vibration signal to extract bearing faults frequencies, but confused! what are the appropiate input parameters used in ...
0
votes
0answers
31 views

Prevent clicking noises during chirp generation

I am trying to generate a tonal sound which changes in frequency and amplitude over time. The goal is to emulate an engine order during driving. So I don't know the frequencies and the amplitudes ...
0
votes
2answers
45 views

Problem with applying elliptic filter to ecg signal

I'm currently working on an article for ECG classification which it says that it has used elliptic bandpass filter with 0.5Hz and 50Hz critical frequencies to eliminate base-line and interference etc. ...
0
votes
0answers
38 views

FIR filter design using Kaiser window - passband ripple and stopband attenuation

I have been given the following parameters : lower cutoff frequency = $\pi/3$ lower cutoff freq = $2\pi/3$ beta = 5.6533 M = 51 Now I have to get magnitude and phase response of the filter using ...
0
votes
1answer
41 views

Impulse response $h[n]$ from input and output signal using cross correlation on Matlab

I have two signals on Matlab, one being input and the other output. I want to know if taking the cross correlation of these signals would give me the impulse response?And if so, will taking the ...
0
votes
0answers
16 views

Is it possible to plot the transfer functions of a State Variable Filter in Matlab, having only recurrence relations?

I need to implement a State Variable Filter, like the one I've programmed in C++ (see code below) inside Matlab. I'm only having the recurrence relations for y and s at the moment. This is the State ...
1
vote
2answers
50 views

White noise generation for different bandwidth signals in MATLAB

I'm working on simulating an uplink scenario in satellite communication. The goal is to send a preamble + data to the satellite from ground station. Data symbols have a bandwidth of $15\ \rm kHz$ and ...
0
votes
1answer
49 views

What happens to the phase spectrum when I resample?

[An update is added at the end of the post after receiving first response] I have an algorithm which is very sensitive to phase shifts. It works with signal sampled at 40MHz (it's a neural network so ...
1
vote
0answers
66 views

Blind STBC question

I am working on blind identification of the physical layer parameters of a particular protocol. Everything was going well until I got to the MIMO part. The system contains two transmitter antennas and ...
1
vote
1answer
30 views

Find Magnitude of a DFT signal using a Blackman window

Hi I've been given a signal made of a series of cosines. I have taken the DFT of the signal using a rectangular window (blue), hamming window (red) and a Blackman window (black). I have identified two ...
0
votes
0answers
37 views

FIR amplitude response using Hr_type3 function in MATLAB

I am trying to design a type 3 FIR filter and generate its amplitude response from the function Hr_type3 (mentioned in Digital Signal Processing Using MATLAB by J. ...
4
votes
1answer
67 views

Finding the Transfer Function of a Multiplicative Distortion in MATLAB

I have the frequency response of two signals shown above. One is uncontaminated, and the other is the same signal contaminated by a multiplicative distortion with two poles and two zeros. I need to ...
3
votes
2answers
100 views

Deconvolution of a 1D Time Domain Wave Signal Convolved with Series of Rect Signals

I have a synthesized signal (the bottom of the following figure), which is the convolution of the input signal (at the top) and the objective function (in the middle). The intention is to retrieve the ...
1
vote
1answer
62 views

IIR Adaptive Filter in MATLAB

Suppose I have a IIR filter represented by $$G_0\left(z\right)=\frac{1}{1-0.2z^{-1}-0.1z^{-2}}$$ I would like to use the LMS algorithm to model an FIR filter $G\left(z\right)$ of order $N = 15$ such ...
0
votes
1answer
51 views

How to simplify an exponential functions in MATLAB? [closed]

I have many defined functions as below and trying to simplify it with MATLAB simplify() function $g(t) = 14.9je^{j31°} e^{j2t} - 14.9je^{-j31°} e^{-j2t}$ How can we ...
0
votes
1answer
27 views

FIR filter design with matlab firls() function

I have defined the following linear phase filter of order 4 (real and symmetric) in matlab: h_d = [0.8367 -1.537 1 -1.537 0.8367] I calculate the frequency response (for many points) and then I use ...
0
votes
1answer
32 views

What is the value of the given periodic signal at any time, how to solve it in MATLAB?

Firstly hello all, I need help about periodic signals. I have a question as below. $x(t)$ is a periodic signal and $0.1t^3[u(t) - u(t - 7)]$ describes its one period. What is the value of $x(t)$ at ...
0
votes
2answers
40 views

Simple Filter representation in Matlab

Suppose I have an IIR filter in the $z$-domain in the following form: $$ H\left(z\right)=\frac{1}{1-0.2z^{-1}-0.1z^{-2}} $$ How do I represent this in MATLAB? I am pretty sure if I just listed the ...
1
vote
1answer
29 views

Formant analysis LPC (Matlab)

I wanted to do formant analysis using MATLAB and did everything according to the following tutorial: https://de.mathworks.com/help/signal/ug/formant-estimation-with-lpc-coefficients.html I have speech ...
0
votes
0answers
48 views

Design a low pass filter in matlab

I'm new to DSP and am trying to design a low pass filter in matlab using firpmord(F,A,DEV,FS,'cell') and firpm() using the ...
0
votes
0answers
19 views

Scipy visualize Linear filter using numerator coefficients

Python scipy signal package has a function freqs to get the frequency response of a linear filter from [b, a] numerator and denominator. So, I should be able to get ...
2
votes
1answer
64 views

Matlab FIR filter numerator coefficients to python

I created a equiripple FIR filter in Matlab using filterDesigner and exported it to an ASCII file. The file contains the numerator values as a list of 51 numbers ...
1
vote
1answer
43 views

Recreating matlab second order filter in python

I want to create some custom filters in Matlab filterDesigner tool and then apply those filters to a large set of audio files. I want to use python to do the ...
4
votes
2answers
104 views

High-pass filter with quantized (fixed-point) coefficients

I have a high pass IIR filter with numerator b = [0.997688673703782,-1.995377347407564,0.997688673703782]; and denominator ...
1
vote
1answer
89 views

Is `xcov()`More Accurate Than `xcorr()` to Compute the Cross Correlation of Signals with Non Zero Mean Values?

I have to compute the cross-correlation between two transient signals, which could be decomposed into a trend (with non-zero mean value) + noise. In particular I am interested in the max of the cross-...

1
2 3 4 5
52