clear
clc
Mass = input('Enter the mass of the object [kg]: ');
Vel = input('Enter the velocity of the object [m/s]: ');
MData = [5 20 40];
VData = [10 5 3.54];
Params = polyfit(log10(MData), log10(VData), 1);
m = Params(1);
b = 10^Params(2);
VBound = b * Mass^m;
if Vel <= VBound
Class = 'possible';
else
Class = 'not possible';
end
fprintf('It is %s to throw a %0.1f kg object at a velocity of %0.1f m/s.\\n', Class, Mass, Vel);