Answered

How to edit original data in for-each equivalent statement

You can often avoid the need for references and the for-loop altogether in MATLAB. This example should get you started: classd...

How to edit original data in for-each equivalent statement

You can often avoid the need for references and the for-loop altogether in MATLAB. This example should get you started: classd...

2 jours ago | 0

Answered

Segmentation of audio signal.

If you have the Signal Processing Toolbox, buffer may be what you're after. Hope this helps! -Greg

Segmentation of audio signal.

If you have the Signal Processing Toolbox, buffer may be what you're after. Hope this helps! -Greg

4 mois ago | 0

Answered

RMS Function Returns NAN

It's likely you have NaN in your input, or your input is an empty vector. If you wish to exclude NaN values from computation, t...

RMS Function Returns NAN

It's likely you have NaN in your input, or your input is an empty vector. If you wish to exclude NaN values from computation, t...

4 mois ago | 0

| accepted

Answered

thd() in matlab workspace shows me an unexpected result, is anything wrong ?

The default window used when running the THD function has a wide rolloff which masks the second and third harmonics in your sign...

thd() in matlab workspace shows me an unexpected result, is anything wrong ?

The default window used when running the THD function has a wide rolloff which masks the second and third harmonics in your sign...

5 mois ago | 2

| accepted

Answered

Why this bandpass butterworth is unstable (while the corresponding low and high pass are stable)?

You will have better results if you use second-order sections. See the "Limitations" section of https://www.mathworks.com/help/...

Why this bandpass butterworth is unstable (while the corresponding low and high pass are stable)?

You will have better results if you use second-order sections. See the "Limitations" section of https://www.mathworks.com/help/...

5 mois ago | 1

| accepted

Answered

medfreq with delta-F threshold ?

From what I can tell your sinusoid is around ~895 Hz and has fairly clean second and third harmonics. So I took that as the sta...

medfreq with delta-F threshold ?

From what I can tell your sinusoid is around ~895 Hz and has fairly clean second and third harmonics. So I took that as the sta...

5 mois ago | 0

| accepted

Answered

measure time from fft spectrogram

You can extract the time vector from the third output of the spectrogram function. [S,F,T,Pxx] = spectrogram(X,...) F is the...

measure time from fft spectrogram

You can extract the time vector from the third output of the spectrogram function. [S,F,T,Pxx] = spectrogram(X,...) F is the...

5 mois ago | 0

| accepted

Answered

Fast Fourier Transform of the subtraction between a signal and the same signal but shifted

Circularly shifting in the time domain is equivalent to multiplying by a phase ramp in the frequency domain. The FFT of the va...

Fast Fourier Transform of the subtraction between a signal and the same signal but shifted

Circularly shifting in the time domain is equivalent to multiplying by a phase ramp in the frequency domain. The FFT of the va...

6 mois ago | 1

| accepted

Answered

How to get pairwise distance matrices from dynamic time warping dtw on a matrix of time series ?

Your signals look extremely well time-aligned (within a sample). Since you have NaN, I suppose you could just perform a weigh...

How to get pairwise distance matrices from dynamic time warping dtw on a matrix of time series ?

Your signals look extremely well time-aligned (within a sample). Since you have NaN, I suppose you could just perform a weigh...

6 mois ago | 0

Answered

Warping window in "findsignal()" for dtw as TimeAlignment.

At the moment there are no warping constraints used in the FINDSIGNAL variant of DTW. I'm usually successful at coaxing it to...

Warping window in "findsignal()" for dtw as TimeAlignment.

At the moment there are no warping constraints used in the FINDSIGNAL variant of DTW. I'm usually successful at coaxing it to...

6 mois ago | 0

Answered

FFT of Downsampled Signal

Hi Adam, If you have significant noise on the signal, then decimate(x,10) or resample(x,1,10) would be preferable. Your result...

FFT of Downsampled Signal

Hi Adam, If you have significant noise on the signal, then decimate(x,10) or resample(x,1,10) would be preferable. Your result...

6 mois ago | 1

| accepted

Answered

Making a video showing trajectories of particles

This should get you started: load Trajectories.mat hAxes = newplot; colors = lines(10); axis(hAxes,[0 1300 0 1100]) f...

Making a video showing trajectories of particles

This should get you started: load Trajectories.mat hAxes = newplot; colors = lines(10); axis(hAxes,[0 1300 0 1100]) f...

6 mois ago | 0

| accepted

Answered

DSP TOOL BOX NOT WORKING Spectrum Analyzer For Two-Sided Power Spectrum

This worked for me: sin = dsp.SineWave('Frequency',100,'SampleRate',1000); sin.SamplesPerFrame = 1000; scope = dsp.SpectrumAn...

DSP TOOL BOX NOT WORKING Spectrum Analyzer For Two-Sided Power Spectrum

This worked for me: sin = dsp.SineWave('Frequency',100,'SampleRate',1000); sin.SamplesPerFrame = 1000; scope = dsp.SpectrumAn...

6 mois ago | 1

| accepted

Answered

Generating a sound that goes up and down in frequency - based on a vector of numbers

Hi Harriet, I'm glad you have the Signal Processing Toolbox and were successfully able to use vco, resample, and spectrogram to...

Generating a sound that goes up and down in frequency - based on a vector of numbers

Hi Harriet, I'm glad you have the Signal Processing Toolbox and were successfully able to use vco, resample, and spectrogram to...

8 mois ago | 0

Answered

Weighted spline for calculating trajectory with lowest possible lateral acceleration

I'm not certain if I understood your question correctly, but you could try adapting the approach in the drivingScenario trajecto...

Weighted spline for calculating trajectory with lowest possible lateral acceleration

I'm not certain if I understood your question correctly, but you could try adapting the approach in the drivingScenario trajecto...

8 mois ago | 0

Answered

How to select matching records based on the differences in their detection time?

I think you want something like this(?): function [t1s, t2s] = szanto(t1, t2) % compute time vectors offset from first tim...

How to select matching records based on the differences in their detection time?

I think you want something like this(?): function [t1s, t2s] = szanto(t1, t2) % compute time vectors offset from first tim...

8 mois ago | 0

Answered

How to find the slope of phase data (between two points) which is uneven

You could try a combination of <https://www.mathworks.com/help/matlab/ref/unwrap.html unwrap> (to remove the jumps of your array...

How to find the slope of phase data (between two points) which is uneven

You could try a combination of <https://www.mathworks.com/help/matlab/ref/unwrap.html unwrap> (to remove the jumps of your array...

12 mois ago | 0

Answered

Looking for a way to patch 44k polygons fast

Have you tried using just one patch? You can specify X and Y as matrices (this example taken from the doc page on <https://www....

Looking for a way to patch 44k polygons fast

Have you tried using just one patch? You can specify X and Y as matrices (this example taken from the doc page on <https://www....

environ un an ago | 0

| accepted

Answered

how to apply dynamic time wrapping

DTW(X,Y) can work on vectors of non-equal length. It will repeat elements in either X or Y so that the comparison is of the sam...

how to apply dynamic time wrapping

DTW(X,Y) can work on vectors of non-equal length. It will repeat elements in either X or Y so that the comparison is of the sam...

environ un an ago | 0

| accepted

Answered

How can I determine the diameter (inner and outer) of the ring profile?

Try this link: <https://www.mathworks.com/help/images/detect-and-measure-circular-objects-in-an-image.html>

How can I determine the diameter (inner and outer) of the ring profile?

Try this link: <https://www.mathworks.com/help/images/detect-and-measure-circular-objects-in-an-image.html>

environ un an ago | 0

Answered

Why does findchangepts doesn't work right?

If you have R2016b or later try: Fs = 100; [sst,f] = fsst(Ch9,Fs,kaiser(512,10)); fridge = tfridge(sst,f,10,'NumRidge...

Why does findchangepts doesn't work right?

If you have R2016b or later try: Fs = 100; [sst,f] = fsst(Ch9,Fs,kaiser(512,10)); fridge = tfridge(sst,f,10,'NumRidge...

environ un an ago | 1

Answered

Time response of the voltage

Most of the documentation for the bilevel measurements panel can be found here: <https://www.mathworks.com/help/simulink/ug/bile...

Time response of the voltage

Most of the documentation for the bilevel measurements panel can be found here: <https://www.mathworks.com/help/simulink/ug/bile...

environ un an ago | 0

| accepted

Answered

ismember runs too slow (others have asked similar questions)

Looks like your positional data could fit in a 3-D histogram (168x24x168). This could be made considerably faster, but hopefull...

ismember runs too slow (others have asked similar questions)

Looks like your positional data could fit in a 3-D histogram (168x24x168). This could be made considerably faster, but hopefull...

environ un an ago | 1

| accepted

Answered

plot a smooth envelope for oscillation curves

Do you have a particular selection criteria for the peaks or formula for how you would like the smoothing performed at the ext...

plot a smooth envelope for oscillation curves

Do you have a particular selection criteria for the peaks or formula for how you would like the smoothing performed at the ext...

environ un an ago | 0

| accepted

Answered

How to combine Matlab's build-in functions dtw and pdist?

You'll want to take the output of DTW and put it into a form that PDIST can recognize. This should get you started: func...

How to combine Matlab's build-in functions dtw and pdist?

You'll want to take the output of DTW and put it into a form that PDIST can recognize. This should get you started: func...

environ un an ago | 1

Answered

Filter big data simulink or matlab

<https://www.mathworks.com/help/signal/ref/hampel.html hampel> should get you started plot(hampel(OutAIS.Data)) If you n...

Filter big data simulink or matlab

<https://www.mathworks.com/help/signal/ref/hampel.html hampel> should get you started plot(hampel(OutAIS.Data)) If you n...

plus d'un an ago | 1

| accepted

Answered

colthoid fitting using trajectory();

The trajectory generator uses a fast discrete solver to obtain a G2-continuous path, so some discontinuities (usu < 1 degree/met...

colthoid fitting using trajectory();

The trajectory generator uses a fast discrete solver to obtain a G2-continuous path, so some discontinuities (usu < 1 degree/met...

plus d'un an ago | 0

Answered

How can i delay a signal?

You could do something simple like: s = exp(-a*(t-t0)).*sin(2*pi*(t-t0)/T); and tweak t0 to be whatever time you need th...

How can i delay a signal?

You could do something simple like: s = exp(-a*(t-t0)).*sin(2*pi*(t-t0)/T); and tweak t0 to be whatever time you need th...

plus d'un an ago | 0

Answered

Power Spectrum of Colored Noises

I think you're looking for a PSD. Try |periodogram(white_noise)| or |periodogram(white_noise,[],[],Fs)|

Power Spectrum of Colored Noises

I think you're looking for a PSD. Try |periodogram(white_noise)| or |periodogram(white_noise,[],[],Fs)|

plus d'un an ago | 0

| accepted

Answered

Why i can't plot a spectrum of a rectangular window function?

If you line up the frequency points, you'll see that your FFT is showing the zeros only. If you crank up the number of points i...

Why i can't plot a spectrum of a rectangular window function?

If you line up the frequency points, you'll see that your FFT is showing the zeros only. If you crank up the number of points i...

plus d'un an ago | 0

| accepted