peak width calculation methods
It seems you are interested in the relative height of the spike with its immediate vicinity (not with respect to higher peaks). ...

5 years ago | 0

| accepted

How can I post process the data from a spectrogram?
The first output of SPECTROGRAM found in the Signal Processing Toolbox is an STFT.

5 years ago | 0

Picking first arrival of a particular wave in a waveform
I can (sort-of) get a feel when things are changing via AR modeling. Basically a sliding window approach that attempts to compa...

5 years ago | 0

I want to derive sinc (0) value through inline or subs function.
sin(a*k)/(b*k) = 1/b * sin(a*k)/k = a/b * sin(a*k)/(a*k) = a/b * sinc(a*k).

5 years ago | 0

findpeaks ( 'WidthReference','halfheight' ) not finding width of peak
I think you wanted this instead: findpeaks(sgf,'MinPeakProminence',0.003,'WidthReference','halfheight','Annotate','extents'...

5 years ago | 0

| accepted

is there any method to represent binary number in matlab
Try something like dec2bin(4) or bin2dec('01001')

5 years ago | 1

why the conv(u,v,'same') choose the a vector a little right deviated to center position
If b is of odd length, you will obtain what you expect. For even length it will move to the next available point having the...

5 years ago | 1

| accepted

Trimming a curve - how to find nearest number and replace
Try: myLimit = -0.15; iFirst = find(y<myLimit, 1, 'first'); iLast = find(y<myLimit, 1, 'last'); xdesired = x(i...

5 years ago | 0

| accepted

How to do time warping in Matlab?
If you have the Signal Processing Toolbox, try <https://www.mathworks.com/help/signal/ref/dtw.html DTW>.

5 years ago | 0

| accepted

what to do to run dsp.SpectrumAnalyzer?
You might not have the DSP System Toolbox installed. Try using pwelch() or periodogram()

5 years ago | 0

| accepted

How to calculate frequency dispersion around median frequency in power spectral density ?
Try <https://www.mathworks.com/help/signal/ref/obw.html Occupied Bandwidth (OBW)>. Have a look at the frequency range (FREQRA...

5 years ago | 0

Can anyone explain how MinPeakProminence works in findpeaks?
See the <https://www.mathworks.com/help/signal/ref/findpeaks.html#buff2uu More About> section on the MathWorks' documentation si...

5 years ago | 1

create an envelop for one oscillating curve
If you have the Signal Processing Toolbox, try ENVELOPE.

5 years ago | 0

How to "smear" a logical mask without looping
If you have a recent copy (R2016a) try: a2 = movmax(a, [n 0]);

5 years ago | 3

| accepted

Why my spectrogram looks so bad? (white lines)
I've heard sometimes updating NVidia drivers help or maybe using the -softwareopengl switch when starting MATLAB. But if all yo...

5 years ago | 0

finding accurate number of peaks and eleminate unwanted peaks
Try: findpeaks(sgf,'MinPeakProminence',1.2);

5 years ago | 0

convert array in a struct
You didn't give us the fieldnames you wanted. So I'm going to guess you want them as 'thing1', 'thing2', 'thing3', etc. and ass...

5 years ago | 1

| accepted

Identify missing section's boundaries in an index
Do you just want all the elements less than -0.06? Then data_v(data_v < -0.06) should give you want you want. If y...

5 years ago | 0

Keep new array from overwriting in loop
You can try this: if az>=(avgcdt-75) | az<=(avgcdt+75) inflowsoundings{end+1}=inputfilename; end

5 years ago | 0

How to get the time frequency plot using autoregrssive model?
If you have the Signal Processing Toolbox, try PYULEAR, PBURG, PCOV, PMCOV. Those will give you a periodogram for a given time ...

5 years ago | 0

| accepted

Flipping y-axis of findpeaks-plot
I think <https://www.mathworks.com/matlabcentral/profile/authors/99682-star-strider Star Strider's> answer is the right approach...

5 years ago | 0

What start time is assumed in Matlab's resample function?
All except for the datetime object variant (where the first sample datetime is copied to the output).

6 years ago | 0

| accepted

ENBW documentation is ambiguous/incorrect.
Looks like this is fixed now.

6 years ago | 0

| accepted

is there a way to only pull out flat peaks of a certain length using the findpeaks function?
When you say "flat" do you mean _ruler_ flat? (i.e. all the same identical value?) If so, you can try something like this: ...

6 years ago | 1

Why is filtic/arburg not working how I intend it to?
You'll want to flip the order of the samples in your call to filtic. See: http://ant-s4.unibw-hamburg.de/dafx/papers/DAFX02_...

6 years ago | 2

| accepted

code for getting AR coefficients from sample signal data?
There are a few in the Signal Processing Toolbox. Try <http://www.mathworks.com/help/signal/ref/aryule.html aryule> or <http:...

6 years ago | 0

How to find the corner points at a plateau
If you like FINDPEAKS' behavior, you can reverse your signal to get the other index. iytemp = findpeaks(y(end:-1:1), ...) ...

6 years ago | 0