Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Please login or create an account
Change language to: English - Français - Português - Русский

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

Scilab help >> Elementary Functions > elementarymatrices > squarewave

# squarewave

### 呼び出し手順

`x=squarewave(t [,percent])`

t

x

percent

### 説明

`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 — 余弦関数

### Comments

Add a comment:
Please login to comment this page.

 Report an issue << rand elementarymatrices sub2ind >>

 Scilab EnterprisesCopyright (c) 2011-2017 (Scilab Enterprises)Copyright (c) 1989-2012 (INRIA)Copyright (c) 1989-2007 (ENPC)with contributors Last updated:Tue Apr 02 17:37:31 CEST 2013