diff options
Diffstat (limited to 'data_structures/MAX_f.js')
-rw-r--r-- | data_structures/MAX_f.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/data_structures/MAX_f.js b/data_structures/MAX_f.js index 8519732..3623dc1 100644 --- a/data_structures/MAX_f.js +++ b/data_structures/MAX_f.js @@ -1,11 +1,11 @@ function MAX_f () { - var in = -1; + var in1 = -1; var model = scicos_model(); model.sim = new ScilabString(["maxblk"]); - model.in=new ScilabDouble([in]); + model.in1.push(new ScilabDouble([in1])); model.out = new ScilabDouble([1]); model.dstate = new ScilabDouble([0],[0]); model.blocktype = new ScilabString(["c"]); @@ -15,4 +15,5 @@ function MAX_f () { var gr_i = []; this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i); + return new BasicBlock(this.x) } |