summaryrefslogtreecommitdiff
path: root/demos/Brijesh_Demos/test_beta.sci
diff options
context:
space:
mode:
Diffstat (limited to 'demos/Brijesh_Demos/test_beta.sci')
-rw-r--r--demos/Brijesh_Demos/test_beta.sci12
1 files changed, 12 insertions, 0 deletions
diff --git a/demos/Brijesh_Demos/test_beta.sci b/demos/Brijesh_Demos/test_beta.sci
new file mode 100644
index 0000000..a5465a7
--- /dev/null
+++ b/demos/Brijesh_Demos/test_beta.sci
@@ -0,0 +1,12 @@
+function test_beta
+ disp('Datatype: Double');
+ i1 = [1 2 3; 4 5 6];
+ i2 = [7 8 9; 10 11 12];
+ o1 = beta(i1,i2);
+ disp(o1);
+ disp('Datatype: float');
+ i3 = float([1 2 3; 4 5 6]);
+ i4 = float([7 8 9; 10 11 12]);
+ o2 = beta(i3,i4);
+ disp(o2);
+endfunction