Top Banner
1. En la sesión del laboratorio deberán realizar los siguiente: 1.1 En el entorno de trabajo o en un archivo del SCILAB desarrollar lo siguiente: x=0.5; y=sin(2*%pi*x); plot (x,y) x= [0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1]; y=sin(2*%pi*x); plot (x,y)
7

scilab labo

Jan 26, 2016

Download

Documents

scilab labora
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: scilab labo

1. En la sesión del laboratorio deberán realizar los siguiente:1.1 En el entorno de trabajo o en un archivo del SCILAB desarrollar lo siguiente:

x=0.5;y=sin(2*%pi*x);plot (x,y)

x= [0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1]; y=sin(2*%pi*x);plot (x,y)

Page 2: scilab labo

Después realizar:

N = 10; h = 1/N; x = 0:h:1;y=sin(2*%pi*x);plot (x,y)Registrar el resultado obtenido y comparar con el anterior.

Page 3: scilab labo

Modificar:

N = 100; h = 1/N; x = 0:h:1;y=sin(2*%pi*x);plot (x,y)

Page 4: scilab labo
Page 5: scilab labo

Modificar:

N = 500; h = 1/N; x = 0:h:1;y=sin(2*%pi*x);plot (x,y)

Etiquetar los gráficos:

title('Graph of y = sin(2pi x)')xlabel('x axis')ylabel('y-axis')plot(x,y,'r-')

Page 6: scilab labo
Page 7: scilab labo