summaryrefslogtreecommitdiff
path: root/js/Linear/TCLSS_f.js
diff options
context:
space:
mode:
authorSunil Shetye2018-07-11 17:51:05 +0530
committerSunil Shetye2018-07-12 23:01:50 +0530
commit44a3807a94783e831070f0e003340af58dc64d16 (patch)
treecce50388afa463583d7a7aead34d40f5b02281f7 /js/Linear/TCLSS_f.js
parent0047c3bea1d86b12a08544f6f0833c63e77f6eac (diff)
downloadsci2js-44a3807a94783e831070f0e003340af58dc64d16.tar.gz
sci2js-44a3807a94783e831070f0e003340af58dc64d16.tar.bz2
sci2js-44a3807a94783e831070f0e003340af58dc64d16.zip
change graphics to object
Diffstat (limited to 'js/Linear/TCLSS_f.js')
-rw-r--r--js/Linear/TCLSS_f.js18
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;
}