diff options
Diffstat (limited to 'Tutorial1_Basic')
-rw-r--r-- | Tutorial1_Basic/Data/Tut1_data2.dat | 15 | ||||
-rw-r--r-- | Tutorial1_Basic/Scilab_code/Tutotial1_filehandling.sce | 7 |
2 files changed, 21 insertions, 1 deletions
diff --git a/Tutorial1_Basic/Data/Tut1_data2.dat b/Tutorial1_Basic/Data/Tut1_data2.dat new file mode 100644 index 0000000..8d79fe3 --- /dev/null +++ b/Tutorial1_Basic/Data/Tut1_data2.dat @@ -0,0 +1,15 @@ +#Obtained from a dummy data for illustration in https://docs.google.com/spreadsheets/d/1mIbdSO35zmm4SJcIXE89_-sk_ZBsB1qKnhiLdgY_-FE/edit#gid=0 +#Grinv Nuexpt err +0.001 17.52228506 0.5 +0.002511886432 15.39548247 0.5 +0.006309573445 10.72315424 0.5 +0.01 7.490637629 0.5 +0.02511886432 7.573613426 0.5 +0.06309573445 6.521758867 0.5 +0.1 4.85299648 0.5 +0.2511886432 5.179305259 0.5 +0.6309573445 4.544433719 0.5 +1 5.009578782 0.5 +2.511886432 5.126719895 0.5 +6.309573445 4.478903266 0.5 +10 5.431082153 0.5 diff --git a/Tutorial1_Basic/Scilab_code/Tutotial1_filehandling.sce b/Tutorial1_Basic/Scilab_code/Tutotial1_filehandling.sce index da9279a..a429533 100644 --- a/Tutorial1_Basic/Scilab_code/Tutotial1_filehandling.sce +++ b/Tutorial1_Basic/Scilab_code/Tutotial1_filehandling.sce @@ -6,7 +6,7 @@ clc exec mymean.sci; exec mystdev.sci; -//Import data from file +//Import data from csv file Data = csvRead('/home/chayan/Documents/scilab-tutorials/Tutorial1/Data/Tut1_data1.csv'); x = Data(:,1); y = Data(:,2); @@ -22,3 +22,8 @@ standard_deviation_of_Data_x= mystdev(x,mean_of_Data_x); //Display mean and standard deviation in command window disp(mean_of_Data_x,'Mean of x',standard_deviation_of_Data_x,'Standard deviation of x') + +//Importing data from dat file +Mat = fscanfMat('Data/Tut1_data2.dat'); +disp(Mat,'Data in the file'); + |