Sunteți pe pagina 1din 6

ESCUDO DE LA INSTITUCION GRUPO :

UNIVERSIDAD DEL VALLE

GRAFICAS
Y
FUNCIONES
A
PREINFORME

MATERIA: EERGIA SOLAR APELLIDOS Y NOMBRES: Fecha de Entrega:


DOCENTE:  FERNANDEZ HUARNCA JOAQUIN 10/09/2018
ING. CESAR LOZANO MIGUEL
.

OBJETIVO

Desarrollar una herramienta que permita operar, graficar, empleando matlab

IMPLEMENTACION

Matlab

PRUEBA

Algoritmo

1. function menu
2. n=0;
3. while n<5
4. fprintf('\n \t1.-SUMA DE FUNCIONES \n')
5. fprintf('\n \t2.-GRAFICA DE DERIVADAS \n')
6. fprintf('\n \t3.-4D \n')
7. fprintf('\n \t4.-SALIR\n')
8. n=input('\n \ ingrese la opcion\n');
9. switch n
10. case 1
11. x = linspace(-2*pi,2*pi);
12. y1 = log(x);
13. y2 = cos(x);
14. y3= y1+y2
15. figure
16. grid on
17. plot(x,y1,x,y2,x,y3)
18.
19. case 2
20. x = linspace(-1000,1000);
21. y1 = (x.^2)-x+5;
22. y2 = diff(y1)
23. y3= diff(y2)
24. figure
25. hold on
26. grid on
27. plot(y1,'--k')
28. hold on
29. plot(y2,':r')
30. plot(y3,'-.bs', 'LineWidth', 2, 'MarkerEdgeColor','r', 'MarkerFaceColor',
'k', 'MarkerSize', 10)
31.
32. case 3
33. % clc; clear
34. [X,Y,Z] = peaks(100);
35. C = rand(size(Z)) ;
36. figure
37. surf(X,Y,Z,C);
38. colorbar
39. shading interp
40. case 4
41. fprintf('\n \t gracias \n')
42. defauld
43. otherwise
44. disp('ingrese otro valor')
45. end
46. end
Graficas

Suma de funciones
Grafica derivadas
Grafica 4d

CONCLUSION
Se puede concluir que con Mathlab podemos crear gráficas y hacer la simulación
del comportamiento de las funciones ya sea en suma o derivándolas. También
se pudo notar que los colores juegan un punto muy importante en las gráficas
4d ya que nos muestran su densidad
RECOMENDACIÓN
Se recomienda usar funciones simples para iniciar la programación además de
observar bien el lenguaje de programación a usarse tanto en la simbología como
en detalles de comas etc.

S-ar putea să vă placă și