From dc0c2354295fc1c80d5c0e10b053e5926861b5d3 Mon Sep 17 00:00:00 2001 From: Sunil Shetye Date: Sat, 16 Jun 2018 19:47:55 +0530 Subject: support var(:,:) syntax --- js/MatrixOp/SUBMAT.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'js/MatrixOp/SUBMAT.js') diff --git a/js/MatrixOp/SUBMAT.js b/js/MatrixOp/SUBMAT.js index 31b92337..76be0254 100644 --- a/js/MatrixOp/SUBMAT.js +++ b/js/MatrixOp/SUBMAT.js @@ -25,27 +25,27 @@ ot=2; it=2; } else { message("Datatype is not supported"); -ok=None; +ok=false; } if ((a<=0)||(b<=0)||(c<=0)||(d<=0)) { message("invalid index"); -ok=None; +ok=false; } if (binp(1)) { message("index of ending row is out of range"); -ok=None; +ok=false; } if (d>inp(2)) { message("index of ending column is out of range"); -ok=None; +ok=false; } model.ipar=[a,b,c,d]; in1=[inp(1),inp(2)]; @@ -82,7 +82,7 @@ model.rpar=[]; model.ipar=[1,1,1,1]; model.blocktype="c"; model.firing=[]; -model.dep_ut=[true,None]; +model.dep_ut=[true,false]; label=[sci2exp(1),sci2exp(1),sci2exp(1),sci2exp(1),sci2exp(1)]; gr_i=[]; x=standard_define([2.5,2],model,label,gr_i); -- cgit