Exercises

  1. Determine whether the following data set is best approximated as an exponential function or a power law function. Do both data fits and compare the two different graphs. You can graph two different graphs so the first does not get replaced by the second using the following commands.

    figure(1); plot(…
    figure(2); plot(…

    x = 2 4 5 7
    y = 7 54 150 1000

    Matlab Screenshot

    Exponential data fitting
    Matlab Graph

    Power law data fitting
    Matlab Graph
    The exponential data fitting is closer to the data points than the power law.