Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.4.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 help >> Elementary Functions > elementarymatrices > 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)])

参照

  • sin — 正弦関数
  • cos — 余弦関数
Report an issue
<< rand elementarymatrices sub2ind >>

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 Oct 01 17:40:23 CEST 2012