summaryrefslogtreecommitdiff
path: root/js/Linear/CLR.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/Linear/CLR.js')
-rw-r--r--js/Linear/CLR.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/js/Linear/CLR.js b/js/Linear/CLR.js
index cc4cbc8a..dcebbfb5 100644
--- a/js/Linear/CLR.js
+++ b/js/Linear/CLR.js
@@ -29,7 +29,7 @@ exprs=graphics.exprs;
model=arg1.model;
x0=model.state;
rpar=model.rpar;
-ns=prod[size(x0)-1];
+ns=prod(size(x0));
nin=1;
nout=1;
PREVAR_scicos_context=PREVAR_scicos_context;
@@ -39,12 +39,12 @@ while (true) {
if (!ok) {
break;
}
-if (degree[num-1]>degree[den-1]) {
+if (degree(num)>degree(den)) {
message("Transfer function must be proper or strictly proper.");
ok=false;
}
if (ok) {
-H=cont_frm[num-1][den-1];
+H=cont_frm(num,den);
[A,B,C,D]=H.slice(2-1,5);
graphics.exprs=exprs;
[ns1,ns1]=size(A);