diff options
Diffstat (limited to 'js/Misc/CONSTRAINT_c.js')
-rw-r--r-- | js/Misc/CONSTRAINT_c.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/Misc/CONSTRAINT_c.js b/js/Misc/CONSTRAINT_c.js index 07500b5b..c3c453eb 100644 --- a/js/Misc/CONSTRAINT_c.js +++ b/js/Misc/CONSTRAINT_c.js @@ -7,7 +7,7 @@ function CONSTRAINT_c() { this.model.in1 = new ScilabDouble([1]); this.model.out = new ScilabDouble([1]); this.model.ipar = new ScilabDouble([0]); - this.model.state = this.x0; + this.model.state = new ScilabDouble(this.x0); this.model.blocktype = new ScilabString(["c"]); this.model.dep_ut = [false,true]; exprs = "0"; @@ -42,7 +42,7 @@ function CONSTRAINT_c() { [this.model,graphics,ok] = check_io(this.model,graphics,N,N,[],[]); if (ok) { graphics.exprs = exprs; - this.model.state = [[this.x0],[zeros(N,1)]]; + this.model.state = new ScilabDouble([this.x0],[zeros(N,1)]); this.model.out = new ScilabDouble([N]); this.model.in1 = new ScilabDouble([N]); this.model.ipar = new ScilabDouble([-1*ones(N,1)]); |