sinc
sinc 函数
说明
示例
理想带限插值
对以整数间隔采样的随机信号执行理想带限插值。
假设要插值的信号 x
在给定时间间隔之外为 0,并且一直以奈奎斯特频率采样。重置随机数生成器以获得可再现性。
rng default t = 1:10; x = randn(size(t))'; ts = linspace(-5,15,600); [Ts,T] = ndgrid(ts,t); y = sinc(Ts - T)*x; plot(t,x,'o',ts,y) xlabel Time, ylabel Signal legend('Sampled','Interpolated','Location','SouthWest') legend boxoff
输入参数
x
— 输入数组
标量值 | 向量 | 矩阵 | N 维数组 | gpuArray
对象
输入数组,指定为实数值或复数值标量、向量、矩阵、N 维数组或 gpuArray
对象。当 x
为非标量时,sinc
是按元素运算。
有关 gpuArray
(Parallel Computing Toolbox) 对象的详细信息,请参阅Run MATLAB Functions on a GPU (Parallel Computing Toolbox)和 GPU Computing Requirements (Parallel Computing Toolbox)。
数据类型: single
| double
复数支持: 是
输出参数
y
— 输入的 sinc
标量值 | 向量 | 矩阵 | N 维数组 | gpuArray
对象
输入数组 x
的 sinc,以与 x
大小相同的实数值或复数值标量、向量、矩阵、N 维数组或 gpuArray
对象形式返回。
详细信息
sinc
sinc 函数的定义如下:
此解析表达式对应于宽度为 2π 且高度为 1 的矩形脉冲的连续傅里叶逆变换:
带限频率范围为 的函数空间由以整数偏移的 sinc 函数的可数无限集合张成。因此,您可以根据整数间隔的采样重新构造任何此类带限函数 g(t):
扩展功能
tall 数组
对行数太多而无法放入内存的数组进行计算。
此函数完全支持 tall 数组。有关详细信息,请参阅tall 数组。
C/C++ 代码生成
使用 MATLAB® Coder™ 生成 C 代码和 C++ 代码。
基于线程的环境
使用 MATLAB® backgroundPool
在后台运行代码或使用 Parallel Computing Toolbox™ ThreadPool
加快代码运行速度。
此函数完全支持基于线程的环境。有关详细信息,请参阅在基于线程的环境中运行 MATLAB 函数。
GPU 数组
通过使用 Parallel Computing Toolbox™ 在图形处理单元 (GPU) 上运行来加快代码执行。
此函数完全支持 GPU 数组。有关详细信息,请参阅Run MATLAB Functions on a GPU (Parallel Computing Toolbox)。
版本历史记录
在 R2006a 之前推出
MATLAB 命令
您点击的链接对应于以下 MATLAB 命令:
请在 MATLAB 命令行窗口中直接输入以执行命令。Web 浏览器不支持 MATLAB 命令。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)