Hello everyone, I hope you are doing well. I need some help with my matlab project. I''m finding the velocity and time after each 1 meter displacement. It''s good when I''m doing that and I''m actually getting correct results. However, I couldn''t find the velocity and time after for example 1.5 or 1.6 meter. this is my program, so can you please help me with it.
function [v,t]=freefall(h) g=9.81;%Gravity in m^2/s
for k=1:h v(k)=sqrt(2*g*k);end fork=1:h t(k)=sqrt(2*k/g);end plot(t,v)xlabel(''Time(s)'')ylabel(''Velocity (m/s)'')title(''Free fall: velocity vs time'')
Best Answer