summaryrefslogtreecommitdiff
path: root/js/Threshold/ZCROSS_f.js
diff options
context:
space:
mode:
authorSunil Shetye2018-06-18 23:41:23 +0530
committerSunil Shetye2018-06-19 10:31:46 +0530
commit1170404c7650cb531534b308f103c9b6abd50d14 (patch)
treea6a61ae2a9a3592440483906ce6c7254b3243553 /js/Threshold/ZCROSS_f.js
parentcd5b0819762aa4a1cb72d29ab7b8c3ac65bbad76 (diff)
downloadsci2js-1170404c7650cb531534b308f103c9b6abd50d14.tar.gz
sci2js-1170404c7650cb531534b308f103c9b6abd50d14.tar.bz2
sci2js-1170404c7650cb531534b308f103c9b6abd50d14.zip
handle multiple rows
Diffstat (limited to 'js/Threshold/ZCROSS_f.js')
-rw-r--r--js/Threshold/ZCROSS_f.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/js/Threshold/ZCROSS_f.js b/js/Threshold/ZCROSS_f.js
index fa17ce78..35da7709 100644
--- a/js/Threshold/ZCROSS_f.js
+++ b/js/Threshold/ZCROSS_f.js
@@ -1,14 +1,14 @@
/* autogenerated from "macros/Threshold/ZCROSS_f.sci" */
function ZCROSS_f() {
ZCROSS_f.prototype.define = function ZCROSS_f() {
-rpar=[-1,-1,0,0];
+rpar=[[-1],[-1],[0],[0]];
in1=1;
model=scicos_model();
model.sim=list("zcross",1);
model.in1=in1;
model.nzcross=in1;
model.evtout=1;
-model.rpar=[-1,-1,0,0];
+model.rpar=[[-1],[-1],[0],[0]];
model.blocktype="z";
model.firing=-1;
model.dep_ut=[true,false];
@@ -26,7 +26,7 @@ graphics=arg1.graphics;
exprs=graphics.exprs;
model=arg1.model;
while (true) {
-[ok,in1,exprs]=scicos_getvalue(["Set Zero-Crossing parameters","All surfaces must cross together"],"Input size",list("vec",1),exprs);
+[ok,in1,exprs]=scicos_getvalue([["Set Zero-Crossing parameters"],["All surfaces must cross together"]],"Input size",list("vec",1),exprs);
if (!ok) {
break;
}
@@ -38,7 +38,7 @@ kk=0;
for (jj=1;jj<=in1;jj+=1) {
kk=kk+2^(in1+jj-1);
}
-model.rpar=[-ones(kk,1),zeros(2^(2*in1)-kk,1)];
+model.rpar=[[-ones(kk,1)],[zeros(2^(2*in1)-kk,1)]];
graphics.exprs=exprs;
model.in1=in1;
model.nzcross=in1;