summaryrefslogtreecommitdiff
path: root/history/data_structures/MBLOCK.js
diff options
context:
space:
mode:
authorkamakshidasan2016-12-22 15:36:18 +0530
committerkamakshidasan2016-12-22 15:36:18 +0530
commitb2cd0d0cad32683971baf53efa2e50ff8d26f66b (patch)
treee359be4308ae9b361eae39bf277adcfbef807cef /history/data_structures/MBLOCK.js
parent25afcccb46a603cc9d2485e25216acfffa2e3e02 (diff)
downloadxcos-on-web-b2cd0d0cad32683971baf53efa2e50ff8d26f66b.tar.gz
xcos-on-web-b2cd0d0cad32683971baf53efa2e50ff8d26f66b.tar.bz2
xcos-on-web-b2cd0d0cad32683971baf53efa2e50ff8d26f66b.zip
Maven has been removed
Diffstat (limited to 'history/data_structures/MBLOCK.js')
-rw-r--r--history/data_structures/MBLOCK.js30
1 files changed, 30 insertions, 0 deletions
diff --git a/history/data_structures/MBLOCK.js b/history/data_structures/MBLOCK.js
new file mode 100644
index 0000000..ce63569
--- /dev/null
+++ b/history/data_structures/MBLOCK.js
@@ -0,0 +1,30 @@
+function MBLOCK () {
+
+
+ var in1 = ["u1"];
+
+ var intype = ["I"];
+
+ var out = ["y1";"y2"];
+
+ var outtype = ["I";"E"];
+
+ var param = ["R";"L"];
+
+ var paramv = list(0.1,.0001);
+
+ var pprop = [[0],[0]];
+
+ var nameF = "generic";
+
+ var exprs = ...colon_operator(tlist,["MBLOCK","in","intype","out","outtype","param","paramv","pprop","nameF","funtxt"],sci2exp(...in1),sci2exp(...intype),sci2exp(...out),sci2exp(...outtype),sci2exp(...param),list(string(0.1),string(.0001)),sci2exp(pprop(,)),nameF,[]);
+
+ var model = scicos_model();
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([false,true]);
+ model.rpar = new ScilabDouble();
+
+ var for i = 1:lstsize(paramv);
+ model.rpar = new ScilabDouble([model.rpar],[paramv(i)(:)]);
+ return new BasicBlock(this.x)
+}