969a42b5ed43bd000146ca1cd1df86bb322c01d3
[scilab.git] / scilab / modules / signal_processing / help / ja_JP / intdec.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2
3 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ja" xml:id="intdec">
4
5     <refnamediv>
6
7         <refname>intdec</refname>
8
9         <refpurpose>信号のサンプリングレートを変更</refpurpose>
10
11     </refnamediv>
12
13     <refsynopsisdiv>
14
15         <title>呼び出し手順</title>
16
17         <synopsis>[y]=intdec(x,lom)</synopsis>
18
19     </refsynopsisdiv>
20
21     <refsection>
22
23         <title>引数</title>
24
25         <variablelist>
26
27             <varlistentry>
28
29                 <term>x</term>
30
31                 <listitem>
32
33                     <para>入力標本信号</para>
34
35                 </listitem>
36
37             </varlistentry>
38
39             <varlistentry>
40
41                 <term>lom</term>
42
43                 <listitem>
44
45                     <para>1次元信号の場合, 変更するレートを指定するスカラー値です.
46
47                         2次元信号の場合,
48
49                         変更する
50
51                         サンプリングレートのベクトル(要素数:2)
52
53                         <literal>lom</literal>=(列方向の変更レート,行方向の変更レート) です.
54
55                     </para>
56
57                 </listitem>
58
59             </varlistentry>
60
61             <varlistentry>
62
63                 <term>y</term>
64
65                 <listitem>
66
67                     <para>出力標本信号</para>
68
69                 </listitem>
70
71             </varlistentry>
72
73         </variablelist>
74
75     </refsection>
76
77     <refsection>
78
79         <title>説明</title>
80
81         <para>
82
83             1次元または2次元信号のサンプリングレートをlomで指定された
84
85             レートに変更します.
86
87         </para>
88
89     </refsection>
90
91     <refsection>
92
93         <title>例</title>
94
95         <programlisting role="example"><![CDATA[
96 Fs1 = 10000;               // initial sampling frequency
97 Fs2 = 14000;               // targeted resampling frequency
98 t1 = (0:1/Fs1:5)';
99 t2 = (0:1/Fs2:5)';
100 F0 = 2;                    // Signal frequency
101 u1 = sin(2*%pi*F0*t1);
102 u2 = sin(2*%pi*F0*t2);     // Direct sampling at targeted frequency (as reference)
103 u2b = intdec(u1, Fs2/Fs1); // Resampled signal
104 clf
105 plot(t2,u2,"b", t2,(u2b-u2)*1000, "r");
106 legend("Direct highly sampled u2","(resampled_u1 - u2) x 1000","in_upper_left");
107  ]]></programlisting>
108         <scilab:image>
109           Fs1 = 10000;               // initial sampling frequency
110           Fs2 = 14000;               // targeted resampling frequency
111           t1 = (0:1/Fs1:5)';
112           t2 = (0:1/Fs2:5)';
113           F0 = 2;                    // Signal frequency
114           u1 = sin(2*%pi*F0*t1);
115           u2 = sin(2*%pi*F0*t2);     // Direct sampling at targeted frequency (as reference)
116           u2b = intdec(u1, Fs2/Fs1); // Resampled signal
117           clf
118           plot(t2,u2,"b", t2,(u2b-u2)*1000, "r");
119           legend("Direct highly sampled u2","(resampled_u1 - u2) x 1000","in_upper_left");
120         </scilab:image>
121
122     </refsection>
123
124 </refentry>
125