    % Example 7.1
    % Free fall
    clear, clc
    % Request input from the user
    g = input('What is the value of acceleration due to gravity?')
    start = input('What starting time would you like?')
    finish = input('What ending time would you like?')
    incr = input('What time increments would you like calculated?')
    time = start:incr:finish;
    % Calculate the distance
    distance = 1/2*g*time.^2;
    % Plot the results
    loglog(time,distance)
    % semilogy(time,distance
    % plot(time,distance)
    title('Distance Traveled in Free Fall')
    xlabel('time, s'),ylabel('distance, m')
    grid
    % Find the maximum distance traveled
    final_distance = max(distance)

    Error using input
    Cannot call INPUT from EVALC.

    Error in bug (line 5)
    g = input('What is the value of acceleration due to gravity?')