Está en la página 1de 5

% PROGRAMA PARA HALLAR LA DISTANCIA DE LOS 50 PRIMEROS SEGUNDOS

% AUTOR: CURI GUTIERREZ KEITHY


disp(' t d')
disp('--------------')
format bank
for t=1:50;
d=t^4+5*t^3+10*t^2+100;
disp([t d])
figure(1)
hold on
plot(t,d)
title('grafico de la distancia con respecto al tiempo')
xlabel('tiempo (t)')
ylabel('distancia (d)')
format short
end

t d

--------------

1.00 116.00

2 196

3 406

4 836

5 1600

6 2836

7 4706

8 7396

9 11116
10 16100

11 22606

12 30916

13 41336

14 54196

15 69850

16 88676

17 111076

18 137476

19 168326

20 204100

21 245296

22 292436

23 346066

24 406756
25 475100

26 551716

27 637246

28 732356

29 837736

30 954100

31 1082186

32 1222756

33 1376596

34 1544516

35 1727350

36 1925956

37 2141216

38 2374036
39 2625346

40 2896100

41 3187276

42 3499876

43 3834926

44 4193476

45 4576600

46 4985396

47 5420986

48 5884516

49 6377156

50 6900100
6
x 10 grafico de la distancia con respecto al tiempo
7

5
distancia (d)

0
0 5 10 15 20 25 30 35 40 45 50
tiempo (t)

También podría gustarte