From aabd535925f24c6203eb1a0dcc5b28d9670133de Mon Sep 17 00:00:00 2001 From: Sunil Shetye Date: Wed, 11 Jul 2018 10:44:34 +0530 Subject: show type for matrix also --- js/Linear/DIFF_c.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'js/Linear/DIFF_c.js') 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; -- cgit