Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function[distance]=sonar(time,density,bulk)
- speed=sqrt(bulk/density);
- distance=speed*(1/2)*time;
- fprintf('The deepness is : %g',distance)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement