diff options
author | Sunil Shetye | 2018-07-11 10:44:34 +0530 |
---|---|---|
committer | Sunil Shetye | 2018-07-11 15:21:08 +0530 |
commit | aabd535925f24c6203eb1a0dcc5b28d9670133de (patch) | |
tree | 73c1021fb17dfdf86f088d930311a007cb3f2120 /js/Linear/DIFF_c.js | |
parent | dc097af448d4ed55d685c5e87c8cffb70b7fb20a (diff) | |
download | sci2js-aabd535925f24c6203eb1a0dcc5b28d9670133de.tar.gz sci2js-aabd535925f24c6203eb1a0dcc5b28d9670133de.tar.bz2 sci2js-aabd535925f24c6203eb1a0dcc5b28d9670133de.zip |
show type for matrix also
Diffstat (limited to 'js/Linear/DIFF_c.js')
-rw-r--r-- | js/Linear/DIFF_c.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/Linear/DIFF_c.js b/js/Linear/DIFF_c.js index cceb973a..f1a45eeb 100644 --- a/js/Linear/DIFF_c.js +++ b/js/Linear/DIFF_c.js @@ -6,7 +6,7 @@ function DIFF_c() { this.model.sim = list(new ScilabString(["diffblk_c"]), new ScilabDouble([10004])); this.model.in1 = new ScilabDouble([1]); this.model.out = new ScilabDouble([1]); - 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 = [[strcat(sci2exp(this.x0[1-1]))],[strcat(sci2exp(this.x0[2-1]))]]; @@ -51,7 +51,7 @@ function DIFF_c() { } if (!ask_again) { graphics.exprs = exprs; - this.model.state = [[this.x0],[this.xd0]]; + this.model.state = new ScilabDouble([this.x0],[this.xd0]); this.model.out = [N]; this.model.in1 = new ScilabDouble([N]); this.x.graphics = graphics; |