summaryrefslogtreecommitdiff
path: root/2915/CH8/EX8.1
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2915/CH8/EX8.1
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '2915/CH8/EX8.1')
-rwxr-xr-x2915/CH8/EX8.1/8_1.JPGbin0 -> 21217 bytes
-rwxr-xr-x2915/CH8/EX8.1/Ex8_1.sce16
-rwxr-xr-x2915/CH8/EX8.1/plot8_1.jpegbin0 -> 61425 bytes
3 files changed, 16 insertions, 0 deletions
diff --git a/2915/CH8/EX8.1/8_1.JPG b/2915/CH8/EX8.1/8_1.JPG
new file mode 100755
index 000000000..afd8761a1
--- /dev/null
+++ b/2915/CH8/EX8.1/8_1.JPG
Binary files differ
diff --git a/2915/CH8/EX8.1/Ex8_1.sce b/2915/CH8/EX8.1/Ex8_1.sce
new file mode 100755
index 000000000..a54ad78e9
--- /dev/null
+++ b/2915/CH8/EX8.1/Ex8_1.sce
@@ -0,0 +1,16 @@
+//Example 8.1
+//To plot the function of sin(x)
+clear,clc;
+
+x = linspace(-0,2*%pi,50);
+y = sin(x) ;
+
+//For grid, uncomment below line
+//set(gca(),"grid",[5 5]);
+
+printf('NOTE:\nTo enable the grid , check the code')
+plot(x,y,'r');
+xlabel("$0\le x\le 2*pi$","fontsize",4,"color","red");
+ylabel("$y(x)=sin(x)$","fontsize",4,"color","red");
+title("Example 8.1","color","blue","fontsize",9);
+legend("sin(x)");
diff --git a/2915/CH8/EX8.1/plot8_1.jpeg b/2915/CH8/EX8.1/plot8_1.jpeg
new file mode 100755
index 000000000..b5c5fd5cd
--- /dev/null
+++ b/2915/CH8/EX8.1/plot8_1.jpeg
Binary files differ