Exercises

Use Matlab to answer each question.

  1. What is the numeric value of this expression? ""

    ans = 43.5000.

  2. What is the minimum number of input parameters required to plot something using the plot command?

    Comment: You need at least one value, a y-coordinate. This would plot the point (1,y) in the center of a plot figure.

  3. What is difference between help help and doc doc?

    Comment: The help command displays information about the help command in the Command Window. The doc command opens a new window with information about the doc command.

  4. What happens when you dock the Editor window?

    Hint: Close the Editor window first. Then, open a new m-file and select Desktop->Dock Editor in the Editor window.

    Docking is when a floating window is given a place in Matlab's desktop configuration. It usually means that an existing window is made smaller to make room for the docked window.

    Use the Desktop menu to see some of the other docking options available to you in Matlab.