Docsity

Study Guide for Interactive Computing with Matlab: Bare Essentials and Developing Mastery , Assignments of Computer Science

Toggle sidebar
bg1
Study Guide for Interactive Computing with Matlab 1
Bare Essentials
At the end of this chapter you should be able to
1. Start Matlab.
2. Define Matlab variables and perform computations with them.
3. Know how to suppress printout with ;
4. Recognize built-in variables.
5. Use on-line help to get more information on a function.
6. Create matrices and vectors with direct assignment (using [])
7. Extract elements from vectors and matrices with subscript notation.
8. Use colon notation to create vectors.
9. Use colon notation to extract ranges of elements from vectors and matrices.
10. Use linspace and logspace to create vectors.
11. Use the transpose operator.
12. Understand how to use array operators (.*,./,.^)and why they are
different from the regular (*,/,^) operators.
13. Create and manipulate complex vectors and matrices.
14. Use path-changing commands to access files in different directories (fold-
ers) on your hard disk.
15. Use the load command to read data from a file.
16. Use the plot function to plot data stored in Matlab variables.
An Expanded Core of Knowledge
After mastering the bare essentials you should move on to a deeper understand-
ing of the fundamentals. Doing so involves being able to
1. Understand how to add and remove variables from the Matlab workspace.
2. Create and manipulate string variables.
3. Create and manipulate Matlab polynomials.
4. Use contour,surf,plot3 etc. to create two and three-dimensional plots.
5. Reshape matrices with the reshape function and a trick with colon nota-
tion.
This document was created by Gerald Recktenwald. It is in the public domain.
pf2

Partial preview of the text

Download Study Guide for Interactive Computing with Matlab: Bare Essentials and Developing Mastery and more Assignments Computer Science in PDF only on Docsity!

Study Guide for Interactive Computing with Matlab 1

Bare Essentials

At the end of this chapter you should be able to

  1. Start Matlab.
  2. Define Matlab variables and perform computations with them.
  3. Know how to suppress printout with ;
  4. Recognize built-in variables.
  5. Use on-line help to get more information on a function.
  6. Create matrices and vectors with direct assignment (using [ ])
  7. Extract elements from vectors and matrices with subscript notation.
  8. Use colon notation to create vectors.
  9. Use colon notation to extract ranges of elements from vectors and matrices.
  10. Use linspace and logspace to create vectors.
  11. Use the transpose operator.
  12. Understand how to use array operators (., ./, .^) and why they are different from the regular (, /, ^) operators.
  13. Create and manipulate complex vectors and matrices.
  14. Use path-changing commands to access files in different directories (fold- ers) on your hard disk.
  15. Use the load command to read data from a file.
  16. Use the plot function to plot data stored in Matlab variables.

An Expanded Core of Knowledge

After masteringthe bare essentials you should move on to a deeper understand- ingof the fundamentals. Doingso involves beingable to

  1. Understand how to add and remove variables from the Matlab workspace.
  2. Create and manipulate stringvariables.
  3. Create and manipulate Matlab polynomials.
  4. Use contour, surf, plot3 etc. to create two and three-dimensional plots.
  5. Reshape matrices with the reshape function and a trick with colon nota- tion.

This document was created by Gerald Recktenwald. It is in the public domain.

Study Guide for Interactive Computing with Matlab 2

Developing Mastery

Workingtoward mastery of interactive Matlab usage you will need to know how to

  1. Delete elements from vectors and matrices.
  2. Perform low level input and output with fopen, fscanf, and fclose.

This document was created by Gerald Recktenwald. It is in the public domain.