Skip to content
Texas A&M University
Mathematics

Spring 2012 MATH 151-8xx MATLAB Assignment 1

Description
  1. Students will work individually on this first assignment.
  2. Assignment Objectives:
    • Calculations with Matlab (Gilat pp11-18)
    • Creating Vectors with Matlab (Gilat pp35-38)
    • Element-by-Element Operations (Gilat pp72-74)
    • Plotting Graphs in Matlab (Gilat pp134-148)
  3. Link to Problems
  4. For each problem, you'll work out of the MATLAB Editor (see Gilat 20-23). You'll interactively save and run your MATLAB M-file, writing input and output to a diary file. See Cycle of Life for more information). If you have graphics, print your figure files to a PDF file using print -dpdf FILENAME.pdf. Files should be named so as to easily recognize the contents. For example, you could name the files associated with the last problem as follows:
    • i1x6.m: M-file with MATLAB input commands and comments
    • i1x6.txt: diary file with input and output interspersed
    • i1x6.pdf: PDF file to transfer to another account or use with xprint in the calclabs
  5. You'll print out the .txt and .pdf files. Do any hand work on ruled notebook paper or engineering green graph paper.
  6. This assignment is due 1 Feb, at the START of your computer lab. Be sure to manage your time according to your schedule. Do NOT put things off! It is highly advisable that you use the 50 minutes in lab each week to complete as much of the assignment as possible while your TA is available to help.
  7. When you finish, you will turn in the documentation of your Matlab work to your TA. Print a copy of the assignment page linked above, fill it out, and use it as a cover sheet.
  8. Various MATLAB videos that you have viewed in advance show how to use xprint to print your diary .txt and .pdf files from CalcLab. Alternatively, transfer your files to the Open Access Lab or your personal computer using a flash drive, email, or FileZilla for printing.
Notes
  • There are samples of the types of problems you have to do in Sections 1.9, 3.8, and 5.12 of your lab manual. (Not all sample problems apply to this assignment.) Watch the Streaming Videos linked on the Assignment page if you have not already done so.

This page was last modified by djm on Thu, 05/Jan, 2012.