diff options
author | Sunil Shetye | 2018-07-11 10:44:34 +0530 |
---|---|---|
committer | Sunil Shetye | 2018-07-11 15:21:08 +0530 |
commit | aabd535925f24c6203eb1a0dcc5b28d9670133de (patch) | |
tree | 73c1021fb17dfdf86f088d930311a007cb3f2120 /js/Misc/AUTOMAT.js | |
parent | dc097af448d4ed55d685c5e87c8cffb70b7fb20a (diff) | |
download | sci2js-aabd535925f24c6203eb1a0dcc5b28d9670133de.tar.gz sci2js-aabd535925f24c6203eb1a0dcc5b28d9670133de.tar.bz2 sci2js-aabd535925f24c6203eb1a0dcc5b28d9670133de.zip |
show type for matrix also
Diffstat (limited to 'js/Misc/AUTOMAT.js')
-rw-r--r-- | js/Misc/AUTOMAT.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/js/Misc/AUTOMAT.js b/js/Misc/AUTOMAT.js index 27ef497f..bb635dcc 100644 --- a/js/Misc/AUTOMAT.js +++ b/js/Misc/AUTOMAT.js @@ -14,14 +14,14 @@ function AUTOMAT() { this.model = scicos_model(); this.model.sim = list(new ScilabString(["automat"]), new ScilabDouble([10004])); this.model.in1 = [[2*NX+1],[2*NX+1]]; - this.model.out = [[2],[2*NX]]; + this.model.out = new ScilabDouble([2],[2*NX]); this.model.state = new ScilabDouble([ones(2*NX,1)]); this.model.nzcross = new ScilabDouble([1]); this.model.blocktype = new ScilabString(["c"]); this.model.evtout = new ScilabDouble([1]); this.model.firing = new ScilabDouble([-1]); this.model.dep_ut = [false,true]; - this.model.ipar = ipar; + this.model.ipar = new ScilabDouble(ipar); this.model.rpar = rpar; gr_i = []; this.x = standard_define([4,2],this.model,exprs,gr_i); @@ -129,7 +129,7 @@ function AUTOMAT() { graphics.gr_i[1-1][1-1] = "txt=[\'Automaton\';\'nM="+string(NMode)+",nX="+string(NX)+"\'];"; graphics.exprs = exprs; this.x.graphics = graphics; - this.model.ipar = ipar; + this.model.ipar = new ScilabDouble(ipar); this.model.rpar = new ScilabDouble([rpar]); this.x.model = this.model; break; |