You are on page 1of 4

Problema 3 kevin piero Benites leon 2019-103041

>> D=3.15; E=0.45; h=0.75; a=1.2; b=4.8; c=0.8; s=2.7; t=1.7;

>> V=((E*pi*4)*((D^2)-(h^2)))

V=

52.9296

>> V=(((E*pi)/4)*((D^2)-(h^2)))

V=

3.3081

>> De=a/V

De =

0.3627

>> De=b/V

De =

1.4510

>> De=c/V

De =

0.2418
>> De=s/V

De =

0.8162

>> De=t/V

De =

0.5139

>> x=linspace(-4,4,10);

>> y1=x.^3-1; plot(x,y1,'r-->')

>> x=linspace(-4,4,3);

>> y1=x.^3-1; plot(x,y1,'r-->')

>> ylabel('eje X','fontSize',14,'color',[0.1 0.2 0.3]);

>> xlabel('eje X','fontSize',14,'color',[0.1 0.2 0.3]);

>> line(x,y,'color','r','linewidth',1.5);

Undefined function or variable 'y'.

>> legend('parabola lineal','parabola barras','location','south');

Warning: Ignoring extra legend entries.

> In legend>process_inputs (line 578)

In legend>make_legend (line 322)

In legend (line 273)

>> y1=x.^3-1; plot(x,y1,'r-->')


>> title('grafica lineal')

You might also like