diff options
Diffstat (limited to 'data_structures/MUX.js')
-rw-r--r-- | data_structures/MUX.js | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/data_structures/MUX.js b/data_structures/MUX.js new file mode 100644 index 0000000..cbba6c7 --- /dev/null +++ b/data_structures/MUX.js @@ -0,0 +1,18 @@ +function MUX () { + + + var in = 2; + + var model = scicos_model(); + model.sim=list("multiplex",4); + model.in=-...transpose([1:in]); + model.out = new ScilabDouble([0]); + model.ipar=new ScilabDouble([in]); + model.blocktype = new ScilabString(["c"]); + model.dep_ut = new ScilabBoolean([true,false]); + + var exprs = in.toString(); + + var gr_i = []; + this.x=new standard_define(new ScilabDouble([.5,2]),model,exprs,gr_i); +} |