diff options
author | Sunil Shetye | 2018-07-09 18:10:31 +0530 |
---|---|---|
committer | Sunil Shetye | 2018-07-10 11:24:53 +0530 |
commit | 9b18945e2e2348db85595fb096a1e1eba04f9baf (patch) | |
tree | bb13cffc501f152b1d33870bdeff6f274aecbf7b /js/Threshold/ZCROSS_f.js | |
parent | f19304a4fe99556c5ddc35024c818d00ffe7e23a (diff) | |
download | sci2js-9b18945e2e2348db85595fb096a1e1eba04f9baf.tar.gz sci2js-9b18945e2e2348db85595fb096a1e1eba04f9baf.tar.bz2 sci2js-9b18945e2e2348db85595fb096a1e1eba04f9baf.zip |
remove type from list
Diffstat (limited to 'js/Threshold/ZCROSS_f.js')
-rw-r--r-- | js/Threshold/ZCROSS_f.js | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/js/Threshold/ZCROSS_f.js b/js/Threshold/ZCROSS_f.js index edf214d0..e7cbb754 100644 --- a/js/Threshold/ZCROSS_f.js +++ b/js/Threshold/ZCROSS_f.js @@ -4,13 +4,13 @@ function ZCROSS_f() { rpar = [[-1],[-1],[0],[0]]; this.in1 = 1; this.model = scicos_model(); - this.model.sim = list(new ScilabString("zcross"),new ScilabDouble(1)); - this.model.in1 = new ScilabDouble(this.in1); - this.model.nzcross = new ScilabDouble(this.in1); - this.model.evtout = new ScilabDouble(1); + this.model.sim = list(new ScilabString(["zcross"]), new ScilabDouble([1])); + this.model.in1 = new ScilabDouble([this.in1]); + this.model.nzcross = new ScilabDouble([this.in1]); + this.model.evtout = new ScilabDouble([1]); this.model.rpar = [[-1],[-1],[0],[0]]; - this.model.blocktype = new ScilabString("z"); - this.model.firing = new ScilabDouble(-1); + this.model.blocktype = new ScilabString(["z"]); + this.model.firing = new ScilabDouble([-1]); this.model.dep_ut = [true,false]; exprs = strcat(sci2exp(this.in1)); gr_i = []; @@ -46,9 +46,9 @@ function ZCROSS_f() { } this.model.rpar = [[-ones(kk,1)],[zeros(2^(2*this.in1)-kk,1)]]; graphics.exprs = exprs; - this.model.in1 = new ScilabDouble(this.in1); - this.model.nzcross = new ScilabDouble(this.in1); - this.model.firing = new ScilabDouble(-1); + this.model.in1 = new ScilabDouble([this.in1]); + this.model.nzcross = new ScilabDouble([this.in1]); + this.model.firing = new ScilabDouble([-1]); this.x.graphics = graphics; this.x.model = this.model; break; |