diff options
Diffstat (limited to 'js/Threshold/GENERAL_f.js')
-rw-r--r-- | js/Threshold/GENERAL_f.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/js/Threshold/GENERAL_f.js b/js/Threshold/GENERAL_f.js index 81323f62..39b84a58 100644 --- a/js/Threshold/GENERAL_f.js +++ b/js/Threshold/GENERAL_f.js @@ -5,13 +5,13 @@ function GENERAL_f() { this.in1 = 1; this.out = 1; this.model = scicos_model(); - this.model.sim = list(new ScilabString("zcross"),new ScilabDouble(1)); - this.model.nzcross = new ScilabDouble(this.in1); - this.model.in1 = new ScilabDouble(this.in1); - this.model.evtout = new ScilabDouble(ones(this.out,1)); + this.model.sim = list(new ScilabString(["zcross"]), new ScilabDouble([1])); + this.model.nzcross = new ScilabDouble([this.in1]); + this.model.in1 = new ScilabDouble([this.in1]); + this.model.evtout = new ScilabDouble([ones(this.out,1)]); this.model.rpar = [[0],[0],[0],[0]]; - this.model.blocktype = new ScilabString("z"); - this.model.firing = new ScilabDouble(-ones(this.out,1)); + this.model.blocktype = new ScilabString(["z"]); + this.model.firing = new ScilabDouble([-ones(this.out,1)]); this.model.dep_ut = [true,false]; exprs = [[strcat(sci2exp(this.in1))],[strcat(sci2exp(this.out))]]; gr_i = []; @@ -55,9 +55,9 @@ function GENERAL_f() { result = x_mdialog("routing matrix",string(1,nout1),string(1,2^(2*nin1)),string(rp.slice().slice())); if (result!=[]) { rp.slice(1-1,nout1).slice(1-1,2*n) = evstr(result); - this.model.nzcross = new ScilabDouble(this.in1); + this.model.nzcross = new ScilabDouble([this.in1]); this.model.rpar = rp.slice(); - this.model.firing = new ScilabDouble(-ones(this.out,1)); + this.model.firing = new ScilabDouble([-ones(this.out,1)]); graphics.exprs = exprs; this.x.graphics = graphics; this.x.model = this.model; |