sint.m

来自「五点差分型多重网格方法:各种插值算子的比较)」· M 代码 · 共 21 行

M
21
字号
%SINT   Sine transform.
%       SINT(X) returns the sine transform of vector X.  The length of X
%       must be one less than a power of two.
%       If X is a matrix, the SINT operation is applied to each column.

% James Bordner and Faisal Saied
% Department of Computer Science
% University of Illinois at Urbana-Champaign
% 10 April 1995

function sx = sint(x)

[m, n] = size(x);

y            = zeros(2*(m+1),n);
y(2:m+1,1:n) = x;
z            = fft(y);
sx           = -imag(z(2:m+1,1:n));


⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?