Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
6.1.1 - 日本語

Change language to:
English - Français - Português - Русский

Please note that the recommended version of Scilab is 2024.0.0. This page might be outdated.
See the recommended documentation of this function

Scilabヘルプ >> Signal Processing > intdec

intdec

信号のサンプリングレートを変更

呼び出し手順

[y]=intdec(x,lom)

引数

x

入力標本信号

lom

1次元信号の場合, 変更するレートを指定するスカラー値です. 2次元信号の場合, 変更する サンプリングレートのベクトル(要素数:2) lom=(列方向の変更レート,行方向の変更レート) です.

y

出力標本信号

説明

1次元または2次元信号のサンプリングレートをlomで指定された レートに変更します.

Fs1 = 1000;               // initial sampling frequency
Fs2 = 1400;               // targeted resampling frequency
t1 = linspace(0, 5-1/Fs1, Fs1*5)';
t2 = linspace(0, 5-1/Fs2, Fs2*5)';
F0 = 2;                    // Signal frequency
u1 = sin(2*%pi*F0*t1);
u2 = sin(2*%pi*F0*t2);     // Direct sampling at targeted frequency (as reference)
u2b = intdec(u1, Fs2/Fs1); // Resampled signal
clf
plot(t2,u2,"b", t2,(u2b-u2)*1e13, "m");
legend("Direct highly sampled u2","Resampling_error x 1e13","in_upper_left");
Report an issue
<< detrend Signal Processing unwrap >>

Copyright (c) 2022-2023 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Mon Jan 03 14:37:51 CET 2022