Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [matlab]

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

10
votes
0answers
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-...
5
votes
0answers
521 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 ...
5
votes
0answers
564 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 ...
4
votes
0answers
298 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 ...
4
votes
0answers
426 views

Attempting to use the trapezoidal rule to form a difference equation representing a circuit

I have a differential equation that has been proven to be correct. The transfer function obtained by Laplace domain analysis and Matlab freqs match up and all is well. The problem is somewhere in ...
4
votes
0answers
342 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 ...
4
votes
0answers
102 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 ...
3
votes
0answers
48 views

Is it possible to approximate given skewness and kurtosis values using an IFFT?

I have time domain data for a signal that behaves randomly but has non-random (non-Gaussian?) skewness and kurtosis values of ~0.9 and ~7.4, respectively. The FFT of the signal shows that it's not ...
3
votes
0answers
49 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 ...
3
votes
0answers
98 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, ...
3
votes
0answers
155 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 ...
3
votes
0answers
352 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 ...
3
votes
0answers
243 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 ...
3
votes
0answers
5k 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 ...
3
votes
0answers
335 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 ...
3
votes
0answers
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 ...
3
votes
0answers
2k 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 ($...
3
votes
0answers
663 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 ...
3
votes
0answers
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 ...
3
votes
0answers
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: ...
3
votes
0answers
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 ...
3
votes
0answers
852 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 ...
3
votes
0answers
137 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 ...
3
votes
0answers
787 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 ...
3
votes
0answers
963 views

adding bode plots together?

I am trying to understand the bode plot result I have obtained. The blue, green, and red plots are $a$, $ b$, and $a+b$ respectively. What I'm having a hard time understanding is how a+b is formed....
3
votes
0answers
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: ...
2
votes
0answers
120 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 ...
2
votes
0answers
25 views

how to robustly estimate low and up envelope of signal with trend, few level constant steps and noise

I am looking for robust estimation method of low and up envelope of the signal consisting from smooth trend component, constant steps between few fixed levels and additive noise (+ outliers of course)....
2
votes
0answers
97 views

How do I extrapolate a 1D chirped signal?

Following a past question, I'd like to extrapolate a signal like the one below: (red is signal, blue is the the extrapolated ) ...
2
votes
0answers
108 views

How can I oversample the received signal by double of sampling time and have two signals

I have a question, how can I make the sampling in Matlab for the received the signal by half of time duration of symbol (Ts), and have two copies of signal (that's the process of fractional sampling ...
2
votes
0answers
61 views

wavelet reconstruction

I am doing mtech project now. Actually I am working on discrete wavelet transform.I have done till wavelet decomposition. I have been stuck in reconstructing the signal back to original .please help ...
2
votes
0answers
44 views

Is there in signal processing similar method than Otsu's method in image processing?

I'm just wondering that is there any similar method for separate signal and signal+noise in signal processing like otsu's method set threshold to valley of image histogram? And if there is how can I ...
2
votes
0answers
236 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. ...
2
votes
0answers
190 views

Help detecting target in pulsed radar signal

This signal is from the Pasternack $2.4\textrm{ GHz}$ development kit. The saved signal appears to be the pulsed waveform. It is sampled at $20\textrm{ kHz}$ for $4130$ points. I recorded a ...
2
votes
0answers
93 views

Cepstrum of finite impulse train

In Acero's Spoken language processing (p. 309) it says that the cepstrum of a finite length impulse train $$x[n] = \sum^{M-1}_{k=0} \delta[n-kN]$$ is given by $$\hat{x}[n] = \sum^{ \infty}_{r=1} \frac{...
2
votes
0answers
187 views

Normalize harmonics to the same fundamental frequency in a time series using MATLAB

I'm a bit new to DSP (so apologies if I get the terminology incorrect) and was wondering if the problem I have is standard. I have measured a time series of a fan and noticed that the my spectrogram ...
2
votes
0answers
269 views

Save ROI and background in two images

I'm using MATLAB Training Image Labeler app for labeling images and exporting the regions of interest (ROIs) which I save in .jpeg files.The ROIs are exported as a structure $1\times 430$ with two ...
2
votes
0answers
317 views

Is Karplus-Strong synthesis a reliable way to test pitch detection algorithms?

I'm using Arduino DUE (Cortex-M3 based board). I want to make a guitar sound using DAC (digital to analog converter). For instance, the note A2's fundamental frequency is 110 Hz (using A4 440 Hz as ...
2
votes
0answers
831 views

Analyzing accelerometer data: appropriate use of rotation matrices?

I'm working on a project in which a rod is attached at one end to a rotating shaft. So, as the shaft rotates from 0 to ~100 degrees back-and-forth (in the xy plane), so does the rod. I mounted a 3-...
2
votes
0answers
818 views

Velocity estimation knowing acceleration and displacement from measurements using Kalman filter

I am having a hard time in trying to use a Kalman filter to obtain velocity from acceleration and position measurements. I think the main reason is that I am not familiar with Kalman filters (I had ...
2
votes
0answers
68 views

Normalized cut segmentation output correct or not?

I have implemented "normalized cut" segmentation. The change here is that, instead of giving an image as input, I have given an matrix of image. As my output looks odd to me. I need to know whether my ...
2
votes
0answers
125 views

TDE, OFDE and FDE equalizer simplest exmple in matlab

I want to implement the equalizer in matlab. I am just learning this. I want a good kick start code that can help me to learn it further. I searched a lot on Google but do not find a good reference ...
2
votes
0answers
305 views

Detect Ground Plane

I am trying to detect a crosswalk pattern on the road by using Hough transform, and then selecting lines that separate between black and white regions in a binary image. The stripes are detected fine, ...
2
votes
0answers
309 views

Artifacts in image after super resolution using delaunay triangulation in MATLAB

i have to do super resolution of two low resolution images to obtain a high resolution image. 1st image is taken as base image and the second image is registered with respect to it . i used SURF ...
2
votes
0answers
87 views

Signal Relationships and Conversion: Transforming one Signal into another?

I'm trying to relate a near shore tidal signal (point A) to 3 points along a long model boundary (points B C D). I want to possibly have a relationship between B C D with which we can convert A ...
2
votes
0answers
4k views

Adaptive Delta Modulation For Speech Signals

I need to implement an adaptive delta modulation encoder and decoder using matlab for my term project. How can I code a good adaptive delta modulation? How can I change ...
2
votes
0answers
236 views

Landmark Extraction via Kinect

I am working on a SLAM algorithm as part of my research and I am having issues reliably extracting landmarks from sensor (Kinect) data. (I've never dealt with machine vision before.) I am looking ...
2
votes
0answers
498 views

Audio watermark embedding text attack resistant

I'm developing an audio watermarking algorithm which embeds text (binary form) in DWT-DCT coefficients. The goal of the algorithm is to hide song information (like artist, song, album,...). Everything ...
2
votes
0answers
865 views

Matlab: Estimating power spectral density of an experimental data?

How do I estimate PSD in matlab ? There are lots of methods to estimate, depending on application. I am using an experimental data to identify faults ( e.g. interturn fault of electric motor), which ...
2
votes
0answers
1k views

Calculation of the correlation of two sinusoidals

First of all I apologize for the long question. I am working with a 3-axis accelerometer and a 3-axis gyroscope and I need to calculate the correlation between the different signals (acceleration in x,...