Réponse apportée

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 de 6 ans il y a | 0

Réponse apportée

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 de 6 ans il y a | 0

| A accepté

Réponse apportée

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 de 6 ans il y a | 0

| A accepté

Réponse apportée

Fill gaps with zeros in a non-consecutive time series

This should get you started: function y = pennyanswer(x) validateattributes(x,{'numeric'},{'row','finite','integer','n...

Fill gaps with zeros in a non-consecutive time series

This should get you started: function y = pennyanswer(x) validateattributes(x,{'numeric'},{'row','finite','integer','n...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée

Find K smallest elements in a vector where K is very small

You may simply be looking for <https://www.mathworks.com/help/matlab/ref/mink.html mink>.

Find K smallest elements in a vector where K is very small

You may simply be looking for <https://www.mathworks.com/help/matlab/ref/mink.html mink>.

plus de 6 ans il y a | 0

Réponse apportée

How to remove jumps and bring the data down?

I tried this with hampel and finchangepts. Seemed to work okay. % load data attached at top of question load spike_jump...

How to remove jumps and bring the data down?

I tried this with hampel and finchangepts. Seemed to work okay. % load data attached at top of question load spike_jump...

presque 7 ans il y a | 0

Réponse apportée

Steady state data filtering

If you have a version of MATLAB beyond R2017b you can try removing outliers with <https://www.mathworks.com/help/matlab/ref/fi...

Steady state data filtering

If you have a version of MATLAB beyond R2017b you can try removing outliers with <https://www.mathworks.com/help/matlab/ref/fi...

presque 7 ans il y a | 0

Réponse apportée

Clearing plotCoverageArea plot in each loop while keeping a previous birdsEyePlot in the figure

Hi Haroon, Don't create a new plotter every time in the loop. Just use plotCoverageArea() inside the loop for the coverage a...

Clearing plotCoverageArea plot in each loop while keeping a previous birdsEyePlot in the figure

Hi Haroon, Don't create a new plotter every time in the loop. Just use plotCoverageArea() inside the loop for the coverage a...

presque 7 ans il y a | 0

| A accepté

Réponse apportée

Runtime update of waypoints/path in drivingScenario

If you want to control the position/orientation of any specific actor you can set its properties yourself instead of defining a ...

Runtime update of waypoints/path in drivingScenario

If you want to control the position/orientation of any specific actor you can set its properties yourself instead of defining a ...

presque 7 ans il y a | 2

| A accepté

Réponse apportée

Using a single figure frame for chasePlot used inside a loop

If you have a handle to the axes you are using you can pass it to the 'Parent' property of the chasePlot when you construct it. ...

Using a single figure frame for chasePlot used inside a loop

If you have a handle to the axes you are using you can pass it to the 'Parent' property of the chasePlot when you construct it. ...

presque 7 ans il y a | 0

| A accepté

Réponse apportée

Hamming filter to reduce ringing artifact in image

Windows are designed to smooth out the transition between the content and the zero-padded region, so apply them just to the data...

Hamming filter to reduce ringing artifact in image

Windows are designed to smooth out the transition between the content and the zero-padded region, so apply them just to the data...

presque 7 ans il y a | 0

| A accepté

Réponse apportée

Differenz between interpolation and resampling

The default filter has 10 taps. If you increase it, you can reduce the amplitude of the ringing. The (P,Q,N,Beta) syntax might...

Differenz between interpolation and resampling

The default filter has 10 taps. If you increase it, you can reduce the amplitude of the ringing. The (P,Q,N,Beta) syntax might...

environ 7 ans il y a | 1

| A accepté

Réponse apportée

is it possible to upsampling or down sampling by a non-integer number?

In case someone else is looking at this... have a look at <http://www.mathworks.com/help/signal/ref/resample.html resample>.

is it possible to upsampling or down sampling by a non-integer number?

In case someone else is looking at this... have a look at <http://www.mathworks.com/help/signal/ref/resample.html resample>.

environ 7 ans il y a | 3

| A accepté

Réponse apportée

What does MinThreshold parameter explain in FindChangePts function (in matlab2017R)?

Perhaps an example is in order. Let's say you have a signal and you are looking for the most significant changes in mean. A ...

What does MinThreshold parameter explain in FindChangePts function (in matlab2017R)?

Perhaps an example is in order. Let's say you have a signal and you are looking for the most significant changes in mean. A ...

environ 7 ans il y a | 4

| A accepté

Réponse apportée

I have a problem of the function findpeaks R2015b : it does not detect the flat peaks like in the version of R2013b

Hi Salma, Hopefully its not too late to ask you, but if perhaps you can post your data or contact technical support we can t...

I have a problem of the function findpeaks R2015b : it does not detect the flat peaks like in the version of R2013b

Hi Salma, Hopefully its not too late to ask you, but if perhaps you can post your data or contact technical support we can t...

environ 7 ans il y a | 0

Réponse apportée

Need to spline, wondering if possible to do this in a "best fit" way.

Try using <https://www.mathworks.com/help/signal/ref/sgolayfilt.html sgolayfilt> in the Signal Processing Toolbox.

Need to spline, wondering if possible to do this in a "best fit" way.

Try using <https://www.mathworks.com/help/signal/ref/sgolayfilt.html sgolayfilt> in the Signal Processing Toolbox.

plus de 7 ans il y a | 0

Réponse apportée

Detection of large amplitudes

Looks like you're interested in finding changes in variance. If you have the Signal Processing Toolbox, try something like: ...

Detection of large amplitudes

Looks like you're interested in finding changes in variance. If you have the Signal Processing Toolbox, try something like: ...

plus de 7 ans il y a | 1

Réponse apportée

piece-wise linear fitting

Have you tried FINDCHANGEPTS in the Signal Processing Toolbox, and how well does it fit your middle segment?

piece-wise linear fitting

Have you tried FINDCHANGEPTS in the Signal Processing Toolbox, and how well does it fit your middle segment?

plus de 7 ans il y a | 0

Réponse apportée

Help with cusum and cellfun

I realize this may be a bit late, but in case someone else is looking for a solution, this worked for me: % make so...

Help with cusum and cellfun

I realize this may be a bit late, but in case someone else is looking for a solution, this worked for me: % make so...

plus de 7 ans il y a | 0

Réponse apportée

how to calculate RMS value of a signal

Try using "rms" in the Signal Processing Toolbox.

how to calculate RMS value of a signal

Try using "rms" in the Signal Processing Toolbox.

plus de 7 ans il y a | 0

| A accepté

Réponse apportée

Sort Coplanar 3D Points Clockwise

I'd probably just project to 2D first and just take the X/Y from there. I'm not sure if the indices need to be sorted first eit...

Sort Coplanar 3D Points Clockwise

I'd probably just project to 2D first and just take the X/Y from there. I'm not sure if the indices need to be sorted first eit...

plus de 7 ans il y a | 0

Réponse apportée

In using spectrogram, what is the difference between specifying option 'power' and 'psd'?

The first output is always the (unmodified) STFT. The 'power' and 'psd' and 'reassign' flags only affect the later outputs ...

In using spectrogram, what is the difference between specifying option 'power' and 'psd'?

The first output is always the (unmodified) STFT. The 'power' and 'psd' and 'reassign' flags only affect the later outputs ...

plus de 7 ans il y a | 0

Réponse apportée

Why is my code identifies only few peaks?

you probably should also subtract the mean from the value you passed to 'minpeakheight' if you want it to track the data.

Why is my code identifies only few peaks?

you probably should also subtract the mean from the value you passed to 'minpeakheight' if you want it to track the data.

plus de 7 ans il y a | 0

| A accepté

Réponse apportée

find local max in time window

If you have a recent copy of MATLAB, try using movmax().

find local max in time window

If you have a recent copy of MATLAB, try using movmax().

plus de 7 ans il y a | 1

| A accepté

Réponse apportée

How do I count repeated familiar signals?

Try FINDSIGNAL in the Signal Processing Toolbox.

How do I count repeated familiar signals?

Try FINDSIGNAL in the Signal Processing Toolbox.

plus de 7 ans il y a | 0

| A accepté

Réponse apportée

Filtering out a Specific Sound from a Audio File

Use periodogram to figure out the frequencies. Then: load buzzjc %soundsc(f,fs) n = numel(f); fold = f; ...

Filtering out a Specific Sound from a Audio File

Use periodogram to figure out the frequencies. Then: load buzzjc %soundsc(f,fs) n = numel(f); fold = f; ...

plus de 7 ans il y a | 1

Réponse apportée

Improve performance of my code

There is a version of DTW in the Signal Processing Toolbox that can accommodate multivariate data, it also has a version for sea...

Improve performance of my code

There is a version of DTW in the Signal Processing Toolbox that can accommodate multivariate data, it also has a version for sea...

plus de 7 ans il y a | 0

Réponse apportée

I need to code a1, a2, a3 = 0. any idea how to do this? I've read about deal, but it seems too long to code 19-20 "a" variables.

How about putting them into a vector? % put them into a vector r = [1.27 1.35 1.4 1.5 1.6 1.7 1.8 1.9 2.0 2.1 2.2 2.3 2....

I need to code a1, a2, a3 = 0. any idea how to do this? I've read about deal, but it seems too long to code 19-20 "a" variables.

How about putting them into a vector? % put them into a vector r = [1.27 1.35 1.4 1.5 1.6 1.7 1.8 1.9 2.0 2.1 2.2 2.3 2....

plus de 7 ans il y a | 0

Réponse apportée

Error using * Inner matrix dimensions must agree? It also shows an error for Y, but I can't figure out what it is?

It looks like you want to use ".*" instead of "*" and "./" instead of "/".

Error using * Inner matrix dimensions must agree? It also shows an error for Y, but I can't figure out what it is?

It looks like you want to use ".*" instead of "*" and "./" instead of "/".

plus de 7 ans il y a | 0

Réponse apportée

Does the dynamic time warping function of Matlab normalize for different dimensions before performing DTW?

Not in DTW directly. FINDSIGNAL has a variant that calls DTW and it has some basic normalization.

Does the dynamic time warping function of Matlab normalize for different dimensions before performing DTW?

Not in DTW directly. FINDSIGNAL has a variant that calls DTW and it has some basic normalization.

plus de 7 ans il y a | 0

| A accepté