diff options
Diffstat (limited to 'js/Linear/TCLSS_f.js')
-rw-r--r-- | js/Linear/TCLSS_f.js | 18 |
1 files changed, 9 insertions, 9 deletions
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; } |