Examples

  1. Enter commands in the Command Window to do the following.
    1. Create a vector of x values from 0.1 to 0.6.
    2. Calculate values, a, b, c, and d, for each of the x terms with a coefficient. Hint: These must be element-wise operations for the input vector named x.
    3. Compute the final value of the formula.
    ""

    Once, you have correctly computed the values, publish your solution code and results to HTML. Review the HTML results, add appropriate cell headers, comments, and make edits to your M-file and republish until you are satisfied with your HTML results for this problem.

    Enter the commands in the Command Window.
    Select the commands from the Command History.
    Right-click and save to M-File.
    commands in the history window and right-click save to m-file
    Add Cell headers.
    Add Cell comments.
    Include your name.
    with cell comments
    File -> Publish to HTML.
    Review results in a Web Browser.
    Print to handin final copy.
    HTML results