Questions tagged [matlab]

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

553 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
11 votes
0 answers
1k views

Ensemble learning, multiple classifier system

I am trying to use a MCS (Multi classifier system) to do some better work on limited data i.e become more accurate. I am using K-means clustering at the moment but may choose to go with FCM (Fuzzy c-...
user avatar
  • 213
5 votes
0 answers
178 views

Residual error when setting measurement matrix in compresssive sensing

I have an issue when implementing compressive sensing to recover sparse vector. Assume I have sparse vector $x$ of length, for example, $(256,1)$. $x = [x_1,x_2,.....x_{256}]$. This vector is ...
user avatar
  • 565
5 votes
0 answers
1k views

Zero-padding of MFCC coefficients

I am trying to implement speech recognition using backpropagation algorithm, and I have been following this paper. I have followed it all the way, except that it tells me to zero-pad the coefficients ...
user avatar
  • 394
5 votes
0 answers
608 views

fit theoretical spectrum to simulated one

I have a bunch of simulated time series, for which I can compute the power spectrum. Generally, the simulated power spectrum can be sketched as follows: I now aim to calculate the features of the ...
user avatar
  • 637
4 votes
0 answers
309 views

Design Nonlinear (Arbitrary) Phase FIR Filter using Iterative Reweighted Least Squares (IRLS)?

How would you use the MATLAB function below to create a FIR filter with a custom magnitude and phase response? It is from the Statistical Modeling and Inference MATLAB Toolbox ...
user avatar
4 votes
0 answers
6k views

1/3 octave spectra from fft

I have got a signal in frequency domain. This is a frequency response function from software, so I can do nothing about it and have to leave it in frequency domain. I want to transfer the data to 1/3 ...
user avatar
4 votes
0 answers
397 views

Extra 'fingers' found in graph after applying FFT in MATLAB

I am currently working on the FFT function in MATLAB. In this function, i require a 1024 number of data Time Domain plot and produce a 400 number of data Frequency domain plot. After applying the FFT ...
user avatar
4 votes
0 answers
103 views

How to evaluate performance of a simulated system

I have created a database (DB) of amplitde vs time delay of UWB pulses originating from various (known) points in a certain (known) "region" in a space. This DB also stores region name, since there ...
user avatar
  • 41
4 votes
1 answer
193 views

How can I detect the tree rings?

I'm looking for the way to detect the tree rings automatically in the wood dist image. Using the matlab, I have removed the background, and binarized the image. How can I detect the white and black ...
user avatar
4 votes
2 answers
708 views

DOA estimation 2 sources time delay estimation uniform array

I am new to signal processing, so sorry if the question is superbanal. I have been spending more days than I would admit on this and can't find the error. I have two triangle waves that are emitted ...
user avatar
  • 141
3 votes
0 answers
153 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. (...
user avatar
3 votes
2 answers
685 views

Why is the relationship between Es/N0 and SNR different for complex and real signals?

I try to use the AWGN Channel model of MATLAB to build my simulation model, but the explanation of the relationship between Es/N0 and SNR in the official manual of MATLAB makes me confused. It says ...
user avatar
  • 141
3 votes
0 answers
35 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 ...
user avatar
  • 228
3 votes
0 answers
170 views

How to compute (in non adaptative way based on MMSE FIR) the feedback and feedword filter for DFE equalization?

System Model Consider the single-input single-output (SISO) communication system in the figure below: where the information bit stream is encoded and mapped such that the output of the encoder is a ...
user avatar
3 votes
0 answers
92 views

Solving the PDE of a signal in an optical fiber

Disclaimer Please let me know if this is not the right place to ask this question. Disclaimer Part 2 I have no background in signals. My focus is in mathematics. In my programming class, we are ...
user avatar
  • 31
3 votes
0 answers
153 views

How to implement the RLS for matrices

I need to implement the RLS algorithm but it's for matrices instead for vectors, I have made the below code, but still something wrong is not working well, EDIT: The code should be done as below, ...
user avatar
3 votes
1 answer
167 views

BER based transmitter gain

Are there any direct relation formula between BER and Transmitter gain. The higher the transmitter gain is, the better the BER performance is. In here, I want to plot graph for the BER based on ...
user avatar
3 votes
0 answers
350 views

Applying Jake's remez exchange algorithm for filter design

I have found C implementation for remez exchange algorithm(https://github.com/janovetz/remez-exchange/blob/master/remez.c) and I want to use this to implement a generic prototype lowpass filter. ...
user avatar
  • 143
3 votes
0 answers
277 views

Intuitions on Kumaresan-Tufts algorithm for exponential fit

I am analyzing a transient signal presumably consisting of superposed exponentials. Such a case is indicated for the Prony analysis, but my data aren't noiseless enough, so I have turned to the ...
user avatar
3 votes
1 answer
666 views

A few questions about the output value of dsp.SpectrumAnalyzer

I am testing the output values of dsp.SpectrumAnalyzer for a sine wave mixed with white noise. The $\sigma^2$ of the white noise is 1e-4, so I use 0.01*randn(1024,1)...
user avatar
3 votes
0 answers
488 views

Implementing blind deconvolution in MATLAB

I want to implement blind deconvolution for the signal $ r(n) = h(n) \star s(n) + a(n)$ in MATLAB where $r(n)$ is the recorded speech $h(n)$ is impulse response of room acoustics $s(n)$ is desired ...
user avatar
3 votes
0 answers
336 views

Why does the Stationary Wavelet Transform shift this image?

I am running a stationary wavelet transformation on a brain image. I can't understand why it shifts with each level so that the image is no longer centered. You can see that the X component shifts to ...
user avatar
3 votes
0 answers
342 views

Remove the extra peaks by lag

Suppose that we have some peaks of a signal and we know the time lag between dominant peaks. How is it possible to remove the extra peaks by applying time lag ? Lets say it in MATLAB ...
user avatar
3 votes
0 answers
1k views

Why PSNR decreases for Ultrasound Images?

I am working different types of filters to remove speckle noise in ultrasound image. I have taken the below paper as my base paper and trying to reproduce the results of this paper: My Base Paper I ...
user avatar
3 votes
0 answers
3k views

Difference between state space and transfer function model response (in Simulink)

Why I get a different response from the same system (e.g. three phase inverter with LC filter) in state space form and in transfer function (Laplace) form when using the same PI controller values ($...
user avatar
3 votes
0 answers
732 views

Matlab Simulink Sampling

First, I apologize for the vague title, to be honest, I'm not even sure how to describe my question in a title. If someone would like to edit it so its more reflective of what I'm asking, then please ...
user avatar
  • 131
3 votes
0 answers
2k views

Creating a Gaussian Pyramid

I'm trying to recreate a gassuain pyramid using the following scales: There seems to be two concepts used here: 1) When an image is halved, applying a gaussian kernel of σ will apply as 2σ. 2) When ...
user avatar
3 votes
0 answers
2k views

Direct access of structure fields returned by a function call

This code was working fine when I asked about it in Filter is too large but when I tried it again on another PC it gives me this error: ...
user avatar
  • 33
3 votes
0 answers
7k views

Simulink continuous to discrete question

I'm new to Matlab/Simulink and would like to convert the continuous system below to discrete for eventual conversion to C code. Matlab has a c2d function, but I don't know how to apply it to a ...
user avatar
3 votes
0 answers
872 views

Any Good Image Blind Deconvolution Algorithm for Removing Camera Shake

I am working in digital image restoration field, i have images that are degraded by camera shake.. can anyone please suggest me any better non blind deconvolution algorithm. my images are similar to ...
user avatar
3 votes
0 answers
148 views

Compensate for standard deviation loss

I am not sure if this question will be a little off-topic on this forum, that I will give it a try anyway, since it implies signal process arguments. By using ...
user avatar
  • 637
3 votes
0 answers
818 views

calculate root mean square, ratio of power, constant false alarm, ... of a signal

I am new to Digital Signal Processing, and am reading a paper. I don't know how they can extract some features from signal, like root mean square (RMS), Constant False Alarm Rate - CFAR, Mean Value ...
user avatar
3 votes
0 answers
3k views

Why does my simulation of the binary symmetric channel disagree with theory?

Could someone please answer me why the simulated performance (using matlab) of a Hamming code over a binary symmetric channel does not fit exacly with the theoretical? Here is my code: ...
user avatar
  • 300
2 votes
0 answers
28 views

Additional artefacts in limited angle Radon transform reconstruction using the Fourier Slice Theorem

I want to simulate the limited angle Radon transform reconstruction problem by employing the Fourier-Slice Theorem which states that $$ \mathbf{F}\left(\mathbf{R} f\right) (\theta, \sigma) = \mathbf{F}...
user avatar
  • 33
2 votes
0 answers
38 views

Non-rectangular meshgrid in MATLAB

I want to create a non-rectangular meshgrid in matlab. Basically I have a polygon shaped feasible set I need to make a grid of in order to interpolate 3D data points in this set. The function for ...
user avatar
2 votes
0 answers
79 views

How to determine the CRLB for FFT based estimator with MATLAB?

I am trying to determine the CRLB for FFT-based frequency estimation in MATLAB. For this, I am simulating a single sinusoid in white noise with different amplitudes and constant noise power. Here is ...
user avatar
  • 21
2 votes
0 answers
39 views

Scatter plot of two signals - Shows independence?

If we have 2 signals, and we want to show that they are independent, I came across a reference where the scatter plot for both was shown, and from the scatter plot, it was written that the signals are ...
user avatar
2 votes
0 answers
45 views

Mismatch between the frequency response of a transfer function and bode plot

I generate a state space model as follows (The details are not important. This part is used to get matrix A_xi and B_xi and the state space model is xi(k+1) = A_xi*xi(k)+B1_xi*u0(k); y(k) = x(k)): <...
user avatar
2 votes
0 answers
140 views

Understanding Phase noise of a Hard Limited Sine Wave

I need help in understanding the frequency spectrum of a sine wave with phase noise that has been hard limited. Background: Typically, textbooks define phase noise for a sinewave, however in many ...
user avatar
  • 21
2 votes
2 answers
285 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: ...
user avatar
  • 83
2 votes
0 answers
129 views

Frequency Estimation Using Multiple Signal Classification Algorithm (MUSIC)

I'm working on side research that deals with signals and data in the time domain. currently, I want to use the multiple signal classification algorithm (MUSIC) which is mainly used for frequency ...
user avatar
2 votes
0 answers
51 views

dsp book with matlab

Hi All: I was thinking about buying a "DSP book with matlab". I'm not sure which one is generally recommended but that's not my question. My question is, when you buy such a book, do they ...
user avatar
  • 1,072
2 votes
0 answers
37 views

How should I sample the signal $f(t) = \sin(24t)^3\chi_{[0,0.52]}$ on the interval $[0,1.25]$?

I am from an applied math/PDE background and I don't usually deal with proper sampling and signal processing. I just take roughly what seems to be a good number of samples. But I would like to be ...
user avatar
2 votes
0 answers
101 views

How to find the noise power in my simulation

I am currently working a tricky communication chain that I want to simulate into Matlab. The chain is like a classic BPSK modulator/demodulator chain, but where the BPSK modulated signal has been ...
user avatar
  • 47
2 votes
0 answers
103 views

Simulink cross correlation issue

here is the Simulink model that i'm using : The matlab function script : function tau = fcn(sig,refsig) tau = gccphat(sig,refsig); The errors :
user avatar
2 votes
0 answers
320 views

Understanding and converting Matlab's coarse frequency compensation function

I am trying to understand and convert to C Matlab's coarse frequency compensator the documentation for which can be found here: Documentation Matlab's design itself is based on this IEEE paper: ...
user avatar
2 votes
0 answers
62 views

2-D low pass filter

I have an ultrasound signal that is 1536x128. I first downsample the signal by a factor of 2x2 in x and t, then I upsample the missing data with zeros, then I do an fft, fftshift, then another fft to ...
user avatar
  • 73
2 votes
0 answers
31 views

Rakeness Optimization problem

Rakeness optimization problem demonstrate that increases the rakeness between $a$ , $b$ while leaving $b$ random enough. where $e$ is the energy of the projection waveforms and $r$ is a randomness-...
user avatar
2 votes
1 answer
85 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[...
user avatar
2 votes
0 answers
1k views

Basics of Normalizing Cross-Correlation with a View to Comparing Signals

I'm trying to understand how cross-correlation is used determine the similarity of two signals. This tutorial offers a very clear explanation of the basics, but I still don't understand how to use ...
user avatar

1
2 3 4 5
12