summaryrefslogtreecommitdiff
path: root/js/MatrixOp/MATCATV.js
diff options
context:
space:
mode:
authorSunil Shetye2018-06-26 14:59:47 +0530
committerSunil Shetye2018-06-26 14:59:47 +0530
commiteb7c8e0cd42d4afe02be3adda2e94b6b0dfdaa00 (patch)
tree6378935263fe5cafd389b6893ac3b37a1dd4b1a7 /js/MatrixOp/MATCATV.js
parentafed64f1a0eab0b2d742088186d7bc340a2c895b (diff)
downloadsci2js-eb7c8e0cd42d4afe02be3adda2e94b6b0dfdaa00.tar.gz
sci2js-eb7c8e0cd42d4afe02be3adda2e94b6b0dfdaa00.tar.bz2
sci2js-eb7c8e0cd42d4afe02be3adda2e94b6b0dfdaa00.zip
add return value from scicos_getvalue to global vars
Diffstat (limited to 'js/MatrixOp/MATCATV.js')
-rw-r--r--js/MatrixOp/MATCATV.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/js/MatrixOp/MATCATV.js b/js/MatrixOp/MATCATV.js
index d635fb4f..4824e14d 100644
--- a/js/MatrixOp/MATCATV.js
+++ b/js/MatrixOp/MATCATV.js
@@ -40,13 +40,13 @@ function MATCATV() {
label = "size(evstr("+label[2-1]+"),\'*\')";
}
while (true) {
- [ok,nin,lab] = scicos_getvalue("Set MATCATV block parameters",["Number od inputs"],list("vec",1),label);
+ [ok,this.nin,this.lab] = scicos_getvalue("Set MATCATV block parameters",["Number od inputs"],list("vec",1),label);
if (!ok) {
break;
}
- label = lab;
- in1 = [-(transpose([2:nin+1])),-ones(nin,1)];
- it = -ones(nin,1);
+ label = this.lab;
+ in1 = [-(transpose([2:this.nin+1])),-ones(this.nin,1)];
+ it = -ones(this.nin,1);
ot = -1;
out = [0,-1];
[model,graphics,ok] = set_io(model,graphics,list(in1,it),list(out,ot),[],[]);