Answered
Piecewise linear fit without interpolating between every two points
The Signal Processing Toolbox R2016a has this capability. See FINDCHANGEPTS

9 years ago | 0

Answered
How to display and save rise time, maximum overshoot and settling time
The Signal Processing Toolbox contains the following functions: risetime falltime overshoot undershoot settling...

9 years ago | 0

Answered
DTW(Dynamic Time Warping Algorithm)
An unconstrained version of DTW is now in the Signal Processing Toolbox

9 years ago | 0

Answered
How to shift curves and select appropriate peak y-axis values
If you have a relatively recent copy of the Signal Processing Toolbox, have a look at the function "findpeaks". Try setting the...

9 years ago | 0

Answered
I need to input varying frequency in sine wave how can i do that?
Try looking at the function "vco" in the Signal Processing Toolbox

9 years ago | 0

Answered
How to find occupied bandwidth
You have a fair amount of noise power, which is swamping your measurement. To see what I mean try (assuming your spectrum is a ...

9 years ago | 0

| accepted

Answered
How to get Greek letters in text in an IMAGE using Inserttext?
Not sure what version of MATLAB you have, but you can try unicode. Does char(945) work for you? sprintf('%s',char(945))

9 years ago | 0

Answered
Using the spectrogram function to analyse harmonic content
This plots the first 20 or so harmonics: [y,fs] = audioread('Trumpet_C4.wav'); fund = 262; spectrogram(y(1:20000),kai...

9 years ago | 0

Answered
how to calculate root means square error of two analog signals
try: rms(sig1 - sig2)

9 years ago | 0

Answered
Filtering peaks to find number of pulses
It looks like you are using FINDPEAKS to find the flat parts of pulses. This might not be the right approach, but in a pinch, y...

9 years ago | 1

Answered
MinPeakProminence option in findpeaks function absent in Linux versions
The <http://www.mathworks.com/help/signal/release-notes.html Signal Processing Toolbox Release Notes> indicate that this functio...

10 years ago | 0

Answered
Time vector returned by spectrogram
The time instants are roughly those in the _center_ of each window used for the spectrum. The time between estimates is the dif...

10 years ago | 0

Answered
bandpower, why doesn't percentage power add up?
Looks like you're double-counting frequencies. Try this instead: function output = balance_power_test(data) %Calc...

10 years ago | 1

| accepted

Answered
Finding a maximum signal variation in MATLAB
You could also try envelope: envelope(data-mean(data),20000,'rms') rmsEnv = envelope(data-mean(data),20000,'rms'); en...

10 years ago | 0

Answered
Peak finder - finding major peaks instead of just the smaller ones
You can do: findpeaks(y,'NPeaks',5,'SortStr','descend') This gets you the five with the largest amplitude. If you wan...

10 years ago | 1

Answered
How can I take the values of one array, map the values as indices to another array, then generate a thrid array with the sum of former's elements??
You can use ACCUMARRAY. ACCUMARRAY is designed to take column vectors, not row vectors. So use this: accumarray(A(:),B(:)...

10 years ago | 1

| accepted

Answered
how to use 'pskmod'
You'll want to convert from integer to double precision first. txpsk = pskmod(double(msg),M);

10 years ago | 0

Answered
Computation of mean and standard deviation after supressing NaNs of an array
You can use mean(x,'omitnan') in R2015a. If you have the Statistics Toolbox, you can use nanmean. Otherwise, try this: ...

10 years ago | 0

Answered
How to find the highest peaks in an audio signal?
Try something like this to get you started: y = audioread('U1_S1_T1.wav') yLeft = y(:,1); yrmsenvLeft = sqrt(conv(yLe...

10 years ago | 2

| accepted

Answered
Why is noise required to get expected Magnitude Squared Coherence (mscohere)
You might be thinking of CPSD instead of MSCOHERE. MSCOHERE will normalize CPSD by the PSD of each signal (i.e. Cxy = (abs(Pxy)...

10 years ago | 1

| accepted

Answered
Fast solver for linear system Ax=b when only x(1) is needed
This seems to work o.k.-ish. det(A(2:end, 2:end)) / det(A) I have no idea how well it compares against the backslash opera...

10 years ago | 0

Answered
Simulink: How to set parameters of AWGN Channel Block ?
Hi Ruozhu, You can adjust the reference impedance of the Spectrum Analyzer by going to the "Spectrum Settings" dialog, under ...

10 years ago | 0

| accepted

Answered
Need an example for calculating power spectrum density
Hi Stefan, Thanks for the data set. Here's an idea to get you started. % RRintervals is a list of the intervals between...

11 years ago | 0

| accepted

Answered
Need an example for calculating power spectrum density
Hi Stefan, There are numerous programs on MATLAB Central's File Exchange that can extract various features from ECG waveforms...

11 years ago | 0

Answered
resample lacks appropriate lowpass filtering
I think resample has a higher cutoff frequency to admit more of the Nyquist range. If I'm interpreting your plot correctly, DEC...

11 years ago | 0

Answered
How do I normalize this signal
Since your peaks appear well-defined and are spaced far enough apart, I would suggest estimating the baseline by using medfilt1(...

11 years ago | 1

Answered
Peak to Peak Distance Help
It looks like you don't have the Signal Processing Toolbox. You get that error when you try accessing a function that doesn't...

12 years ago | 0

Answered
Find pulse width and cycle & .mfile read/plot
Based upon your second and third pictures, it seems your signal has a low level of 0 and reaches an amplitude of at least 0.5 fo...

13 years ago | 0