Está en la página 1de 1

coche

function [tabla] = tablas(t,y,x,d,velocidad_trencoche)


%UNTITLED5 Summary of this function goes here
% Detailed explanation goes here
vocoche=28*5280/3600;votren=54*5280/3600;acoche=4;
t=0:10;
y=-400+votren.*t;
x=-200+vocoche*t+0.5*acoche*t.^2;
d=sqrt(x.^2+y.^2);
vfcoche=vocoche+acoche*t;
velocidad_trencoche=sqrt(vfcoche.^2+votren^2);
tabla=[t',y',x',d',vfcoche',velocidad_trencoche']

end

%calculo d la tabla
tablas

vector
function [v] = escalar(v1,v2)
%UNTITLED7 Summary of this function goes here
% Detailed explanation goes he
v1=[4,9,-5];
v2=[-3;6;-7];
V1=v1*v2;
v=sum(V1)

end
%calculo del vector
escalar

altura y sueprficie
function [r,s] = altura(h)
%UNTITLED9 Summary of this function goes here
% Detailed explanation goes here
v=250;
r=sqrt(v*3./(pi*h))
s=pi*r.*sqrt(r.^2+h.^2)
end

%calculo del radio y de superficie


a=input('ingres la altura')
altura(a)

También podría gustarte