summaryrefslogtreecommitdiff
path: root/2915/CH5/EX5.1/Ex5_1.sce
blob: ab91e5e13569f35f2fa7f08c33f3092a7e401970 (plain)
1
2
3
4
5
6
7
8
9
10
11
//Example 5.1
//To sketch the graph of minus sinx in a given interval
clear,clc;

x = linspace(-0,2*%pi,50);
y = -sin(x) ;
set(gca(),"grid",[5 5]);
plot(x,y);
xlabel("$0\le x\le 2*pi$","fontsize",4,"color","red");
ylabel("$y(x)=-sin(x)$","fontsize",4,"color","red");
title("Example 5.1","color","blue","fontsize",9);