已更新:用于控制信号步长(量化级别)的技术 [英] Updated :Technique used to control Step sizes (Quantization levels) of signals

查看:171
本文介绍了已更新:用于控制信号步长(量化级别)的技术的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有2个非线性信号,它们是从不同驱动器获取的传感器生成的.我想问的是,是否可以在Matlab中更改或控制信号的步长.

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.

我的目标是使两个信号的步长相同,尽管它们是从传感器生成的,但是否可以通过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.

非常感谢.

如何在MATLAB中控制信号的步长.

How to control Step size of signal in MATLAB.

我想做什么.

  • 我想在一些小数点上对信号进行采样.

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

更改信号的步长.

到目前为止,我已经尝试过DownSample了.

For DownSample I have tried so far .

  • 抽取

  • Decimate

下采样

但是这些命令适用于Integer值,但是如果我有一些十进制值,该怎么办.

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.

第二步:

我想控制信号的步长.

假设我的原始信号的步长为0.044,测量的信号的步长为0.10.

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.

推荐答案

对于第一个问题,是否可以使用

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?

这篇关于已更新:用于控制信号步长(量化级别)的技术的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆