summaryrefslogtreecommitdiff
path: root/js/MatrixOp/SUBMAT.js
diff options
context:
space:
mode:
authorSunil Shetye2018-06-16 19:47:55 +0530
committerSunil Shetye2018-06-18 10:46:22 +0530
commitdc0c2354295fc1c80d5c0e10b053e5926861b5d3 (patch)
treef985ad20bba0639e5d85e3be91552b4dca6f7fc9 /js/MatrixOp/SUBMAT.js
parent3a3e1d6aa7fd38a910a7416040050ffa9550566e (diff)
downloadsci2js-dc0c2354295fc1c80d5c0e10b053e5926861b5d3.tar.gz
sci2js-dc0c2354295fc1c80d5c0e10b053e5926861b5d3.tar.bz2
sci2js-dc0c2354295fc1c80d5c0e10b053e5926861b5d3.zip
support var(:,:) syntax
Diffstat (limited to 'js/MatrixOp/SUBMAT.js')
-rw-r--r--js/MatrixOp/SUBMAT.js14
1 files changed, 7 insertions, 7 deletions
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 (b<a) {
message("ending row must be greater than starting row");
-ok=None;
+ok=false;
}
if (d<c) {
message("ending column must be greater than starting column");
-ok=None;
+ok=false;
}
if (b>inp(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);