Updated :Technique used to control Step sizes (Qua

2019-08-27 18:07发布

问题:

I have 2 nonlinear signals generated from sensors that were taken from different drives. I wanted to ask Is it possible to change or control the step size of signal in Matlab.

My aim is to make the step size of 2 signals same though they are generated from sensor but Is it possible to do this through MATLAB and how.

What I mean by step sizes is the quantization steps as shown in figure.

Thanks a lot.

How to control Step size of signal in MATLAB.

What I want to do.

  • I want to down sample my signal on some decimal points .

  • Change the Step size of signal.

For DownSample I have tried so far .

  • Decimate

  • Downsample

But these commands works for Integer values but if I have some decimal Values what should I do .

So I thought of subtracting some values for samples . Take an example..

   ref=[1 2 3 4 5 6 7 8 9 10];
   x=  ref(1:3:10) 

This will lessen my samples for desired values and I change these for decimal values also.

2nd Step:

I want to control the step size of signal.

Let’s suppose my original signal has step size of 0.044 and my measured signal has step size of 0.10.

I want to make the step size of original signal equal to measured signal. (How this is possible).

I am sorry for not being able to provide u the original data as it has a lot of values.

Interpolation of signal is a way as you explained. Is there any other way to do that without interpolation?

Because I don’t want to change my data values Just want to resolve the issue by the values that I have.

回答1:

For the First question, can you interpolate the data using Interp1 function?

In the second question, i'm not familiar with that function, however it has a bandwidth property. Is it be the property that you want?