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

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 manual >> Elementary Functions > squarewave

squarewave

周期 2*%piの矩形波を生成

呼び出し手順

x=squarewave(t [,percent])

パラメータ

t

実数ベクトル, 離散時間

x

実数ベクトル, 各時間における集合 (-1,+1)の波の値

percent

実数の正のスカラー値で, 信号の符号が正となる周期の割合. デフォルト値は 50

説明

squarewave(t)tベクトルで指定された点において 周期 2*%pi の矩形波の値からなるベクトルを 生成します.

squarewave(t,%)%が信号が正となる周期の割合(パーセント)となるような 矩形波を生成します.

t=(0:0.1:5*%pi)';
plot2d1('onn',t,[2*sin(t),1.5*squarewave(t),squarewave(t,10)])

参照

<< sqrtm Elementary Functions ssrand >>

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:
Wed Jan 26 16:25:04 CET 2011