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.1. This page might be outdated.
See the recommended documentation of this function

Scilab help >> CACSD > prbs_a

prbs_a

擬似バイナリ乱数列の生成

呼び出し手順

[u]=prbs_a(n,nc,[ids])

説明

擬似バイナリ乱数列 u=[u0,u1,...,u_(n-1)]を生成します. u は {-1,1} の範囲の値となり, 最大で nc 回その符号を変えます. ids は u が符号を変える日付を修正するために使用されます. ids は[1:n]の範囲の値をとる整数ベクトルです.

u=prbs_a(50,10);
plot2d2("onn",(1:50)',u',1,"151",' ',[0,-1.5,50,1.5]);
Scilab Enterprises
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Thu Mar 03 11:00:55 CET 2011