summaryrefslogtreecommitdiff
path: root/js/MatrixOp/MATMAGPHI.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/MatrixOp/MATMAGPHI.js')
-rw-r--r--js/MatrixOp/MATMAGPHI.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/js/MatrixOp/MATMAGPHI.js b/js/MatrixOp/MATMAGPHI.js
index b03027d3..e46a7675 100644
--- a/js/MatrixOp/MATMAGPHI.js
+++ b/js/MatrixOp/MATMAGPHI.js
@@ -4,10 +4,10 @@ function MATMAGPHI() {
this.model = scicos_model();
function_name = "matz_abs";
funtyp = 4;
- this.model.sim = list(new ScilabString(function_name),new ScilabDouble(funtyp));
- this.model.in1 = new ScilabDouble(-1);
- this.model.in2 = new ScilabDouble(-2);
- this.model.intyp = new ScilabDouble(2);
+ this.model.sim = list(new ScilabString([function_name]), new ScilabDouble([funtyp]));
+ this.model.in1 = new ScilabDouble([-1]);
+ this.model.in2 = new ScilabDouble([-2]);
+ this.model.intyp = new ScilabDouble([2]);
this.model.out = [[-1],[-1]];
this.model.out2 = [[-2],[-2]];
this.model.outtyp = [1,1];
@@ -17,7 +17,7 @@ function MATMAGPHI() {
this.model.dstate = [];
this.model.rpar = [];
this.model.ipar = [];
- this.model.blocktype = new ScilabString("c");
+ this.model.blocktype = new ScilabString(["c"]);
this.model.firing = [];
this.model.dep_ut = [true,false];
label = [sci2exp(1)];
@@ -71,7 +71,7 @@ function MATMAGPHI() {
[model,graphics,ok] = set_io(this.model,graphics,list(in1,it),list(out,ot),[],[]);
}
if (ok) {
- this.model.sim = list(new ScilabString(function_name),new ScilabDouble(funtyp));
+ this.model.sim = list(new ScilabString([function_name]), new ScilabDouble([funtyp]));
arg1.model = this.model;
graphics.exprs = label;
arg1.graphics = graphics;