From 0047c3bea1d86b12a08544f6f0833c63e77f6eac Mon Sep 17 00:00:00 2001 From: Sunil Shetye Date: Wed, 11 Jul 2018 15:19:38 +0530 Subject: support vector also --- js/Misc/CONSTRAINT2_c.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'js/Misc/CONSTRAINT2_c.js') diff --git a/js/Misc/CONSTRAINT2_c.js b/js/Misc/CONSTRAINT2_c.js index 012099d4..7c2b0af5 100644 --- a/js/Misc/CONSTRAINT2_c.js +++ b/js/Misc/CONSTRAINT2_c.js @@ -9,9 +9,9 @@ function CONSTRAINT2_c() { this.model.in1 = new ScilabDouble([1]); this.model.out = new ScilabDouble([1],[1]); this.model.state = new ScilabDouble([this.x0],[this.xd0]); - this.model.ipar = this.id; + this.model.ipar = new ScilabDouble(this.id); this.model.blocktype = new ScilabString(["c"]); - this.model.dep_ut = [false,true]; + this.model.dep_ut = new ScilabDouble([false,true]); var exprs = list(strcat(sci2exp(this.x0)),strcat(sci2exp(this.xd0)),strcat(sci2exp(this.id))); var gr_i = []; this.x = standard_define([3,2],this.model,exprs,gr_i); @@ -73,7 +73,7 @@ function CONSTRAINT2_c() { this.model.state = new ScilabDouble([this.x0],[this.xd0]); this.model.out = new ScilabDouble([N],[N]); this.model.in1 = new ScilabDouble([N]); - this.model.ipar = this.id; + this.model.ipar = new ScilabDouble(this.id); this.x.graphics = graphics; this.x.model = this.model; break; -- cgit