summaryrefslogtreecommitdiff
path: root/2.3-1/demos/Abhinav_Demos/std_dev.sci
diff options
context:
space:
mode:
Diffstat (limited to '2.3-1/demos/Abhinav_Demos/std_dev.sci')
-rw-r--r--2.3-1/demos/Abhinav_Demos/std_dev.sci20
1 files changed, 20 insertions, 0 deletions
diff --git a/2.3-1/demos/Abhinav_Demos/std_dev.sci b/2.3-1/demos/Abhinav_Demos/std_dev.sci
new file mode 100644
index 00000000..f7dbe41d
--- /dev/null
+++ b/2.3-1/demos/Abhinav_Demos/std_dev.sci
@@ -0,0 +1,20 @@
+// Test file for "Column" function for the data types double, float, double complex, string.
+// All the below statements are added to initialize variables in different data types
+
+
+function std_dev()
+ a=[1,2,3,4; 5,6,7,8; 98,162,6587,0]
+ disp('Double')
+ disp(stdev(a))
+ disp('')
+ disp(stdev(a,'r'))
+ disp('')
+ disp(stdev(a,'c'))
+ b=float(a)
+ disp('Float')
+ disp(stdev(b))
+ disp('')
+ disp(stdev(b,'r'))
+ disp('')
+ disp(stdev(b,'c'))
+endfunction