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/Sinks/CMATVIEW.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/Sinks/CMATVIEW.js')
-rw-r--r-- | js/Sinks/CMATVIEW.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/js/Sinks/CMATVIEW.js b/js/Sinks/CMATVIEW.js index 594a6622..d9c415f5 100644 --- a/js/Sinks/CMATVIEW.js +++ b/js/Sinks/CMATVIEW.js @@ -13,8 +13,8 @@ function CMATVIEW() { this.model.in2 = new ScilabDouble([-2]); this.model.intyp = new ScilabDouble([1]); this.model.evtin = new ScilabDouble([1]); - this.model.ipar = [[this.cmin],[this.cmax],[size_c]]; - this.model.rpar = [[alpha_c],[beta_c],[this.colormap.slice()]]; + this.model.ipar = new ScilabDouble([this.cmin],[this.cmax],[size_c]); + this.model.rpar = new ScilabDouble([alpha_c],[beta_c],[this.colormap.slice()]); this.model.blocktype = new ScilabString(["c"]); this.model.dep_ut = [true,false]; exprs = [[string("jetcolormap(25)")],[string(this.cmin)],[string(this.cmax)]]; @@ -61,8 +61,8 @@ function CMATVIEW() { beta_c = sol[2-1]; ipar = [[this.cmin],[this.cmax],[size_c]]; rpar = [[alpha_c],[beta_c],[this.colormap.slice()]]; - this.model.ipar = ipar; - this.model.rpar = rpar; + this.model.ipar = new ScilabDouble(ipar); + this.model.rpar = new ScilabDouble(rpar); graphics.exprs = exprs; this.x.graphics = graphics; this.x.model = this.model; |