From 44a3807a94783e831070f0e003340af58dc64d16 Mon Sep 17 00:00:00 2001 From: Sunil Shetye Date: Wed, 11 Jul 2018 17:51:05 +0530 Subject: change graphics to object --- js/Linear/TCLSS_f.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'js/Linear/TCLSS_f.js') diff --git a/js/Linear/TCLSS_f.js b/js/Linear/TCLSS_f.js index da69f8aa..fbed9355 100644 --- a/js/Linear/TCLSS_f.js +++ b/js/Linear/TCLSS_f.js @@ -43,8 +43,8 @@ function TCLSS_f() { this.D = parseFloat(arguments[0]["D"]) this.x0 = parseFloat(arguments[0]["x0"]) this.x = arg1; - var graphics = arg1.graphics; - var exprs = graphics.exprs; + this.graphics = arg1.graphics; + var exprs = this.graphics.exprs; this.model = arg1.model; if (size(exprs,"*")==7) { var exprs = exprs[[1:4,7]-1]; @@ -62,18 +62,18 @@ function TCLSS_f() { if (in1==0) { var in1 = []; } - var tmpvar0 = size(this.A) - var ms = tmpvar0[0] + var tmpvar0 = size(this.A); + var ms = tmpvar0[0]; var ns = tmpvar0[1]; if (ms!=ns) { message("A matrix must be square"); } else { - var tmpvar1 = check_io(this.model,graphics,[[in1],[ms]],out,1,[]) - this.model = tmpvar1[0] - var graphics = tmpvar1[1] + var tmpvar1 = check_io(this.model,this.graphics,[[in1],[ms]],out,1,[]); + this.model = tmpvar1[0]; + this.graphics = tmpvar1[1]; var ok = tmpvar1[2]; if (ok) { - graphics.exprs = exprs; + this.graphics.exprs = new ScilabDouble([exprs]); var rpar = [[this.A.slice()],[this.B.slice()],[this.C.slice()],[this.D.slice()]]; if (this.D!=[]) { if (norm(this.D,1)!=0) { @@ -94,7 +94,7 @@ function TCLSS_f() { } else { this.model.sim = list(new ScilabString(["tcsltj"]), new ScilabDouble([1])); } - this.x.graphics = graphics; + this.x.graphics = this.graphics; this.x.model = this.model; break; } -- cgit