Otra

Post on 24-Dec-2015

219 views 3 download

description

costos

Transcript of Otra

COSTOS ANUALES EN MILLONESAÑOS 2003 2004 2005 2006 2007 2008 2009 2010 2011COSTOS 8 10 9 5 12 10 11 13 12

GRAFICAR LA SIGUIENTE FUNCION

F ( x )=3ex

x+cos ( x) en el intervalo x∈[13]

%CLASE DE PROGRAMACION %ARRAY O MATRICES BIDIMENSIONALES%VECTOR DE FILA%an=[2003 2004 2005 2006 2007]%an=2003:1:2011;%costo=[8 10 9 5 12 10 11 13 12]%plot grafica arregos%plot(an,costo)%plot(an,costo,'-pr','linewidth',3,'markersize',11,'markeredgecolor','g','markerfacecolor','y')%funcion fplot GRAFICA DE FUNCIONES fplot(f(x),x)clc%fplot('(3*exp(x)/x)+cos(x)',[1 3],'--or')%PROGRAMACION DE ENTRADASli=input('Ingrese por favor el li= ')ls=input('Ingrese por favor el ls= ')x=li:0.01:ls; %dominiof=3*x.^5 + 6*x.^2+1;x1=-1:0.01:5; %linea verdedf=15*x1.^4+12*x1;%x2=-1/2:0.01:3/2;%ddf=60*x2.^3+12;%plot(x,f,x1,df,x2,ddf,'linewidth',3)plot(x,f) %azul%grid on%hold on%plot(x1,df,'-r') %rojo%plot(x2,ddf,'--g') %verde%fplot('60*x2.^3+12',[-1/2 3/2],'--g')%hold off