You are here

Solution to Exercise 1.1

8 October, 2015 - 17:29
  1.    
     >> help workspace WORKSPACE Open Workspace browser to manage workspace WORKSPACE Opens the Workspace browser with a view of the variables in the current Workspace. Displayed variables may be viewed, manipulated, saved, and cleared. See also whos, openvar, save. Reference page in Help browser doc workspace >> 
    
  2.     
      >> help plot PLOT Linear plot. PLOT(X,Y) plots vector Y versus vector X. If X or Y is a matrix, then the vector is plotted versus the rows or columns of the matrix, whichever line up. If X is a scalar and Y is a vector, disconnected line objects are created and plotted as discrete points vertically at X. .......... 
    
  3.    
     >> help clear CLEAR Clear variables and functions from memory. CLEAR removes all variables from the workspace. CLEAR VARIABLES does the same thing. CLEAR GLOBAL removes all global variables. CLEAR FUNCTIONS removes all compiled M- and MEX-functions. CLEAR ALL removes all variables, globals, functions and MEX links. CLEAR ALL at the command prompt also removes the Java packages import list. ...... 
    
  4.     
     >> help format FORMAT Set output format. FORMAT with no inputs sets the output format to the default appropriate for the class of the variable. For float variables, the default is FORMAT SHORT. ...... 
    
  5.   
     >> help roots ROOTS Find polynomial roots. ROOTS(C) computes the roots of the polynomial whose coefficients are the elements of the vector C. If C has N+1 components, the polynomial is C(1)*X^N + ... + C(N)*X + C(N+1). ......