01 - Laboratory Exercise Number 1 Getting Started with...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Laboratory Exercise Number 1 Getting Started with Matlab Background: This laboratory exercise is intended to begin our introduction to programming in Matlab, its Integrated Development Environment (IDE), and its ability to draw graphs based on an equation. (As a sneaky side issue, this lab period will also help you learn the names of your instructor and teaching assistants and perhaps some of the other students in the lab section. ...) Assignment: Enter and run the program listed on the next page. See the first addendum of this lab exercise for detailed instructions for entering this first program. Most of what you will do for the rest of the semester will follow these steps so be sure to focus on them. See the final addendum for a description of the theory (unconstrained bacterial growth) behind the exercise. Some of the steps today may at first be done by rote rather than understanding. For now, the objective of the exercise is to do “something” that helps you get started with Matlab code, the Matlab IDE (Integrated Development Environment), and the Riley-Robb lab computers. However, Matlab is based on English so the code should be sufficiently readable that you can figure out from step to step what the program is doing. Matlab syntax is somewhat less mysterious than the syntax of some other computer languages. Suggestion!!!! Study the code and understand the steps being taken, even if some of the syntax appears mysterious at first. A hint to start is that the % symbol denotes the following text is a comment meant only for you, not the computer. You will notice a great deal of explanatory notes with the code - known to the cognizant programmer as “comments”. You will be required to add comparable comments to your code to make it understandable to others, and even to yourself after you have not seen it for several days! To Do For Laboratory Exercise Number 1: Type the program into Matlab and make sure it runs. Don’t forget that Matlab is case-sensitive! To submit online: 1. The m-file containing your first program, and 2. The fig-file with the resulting graph.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
% <enter your name here - don't just type this text, and don’t include brackets!> % <type here the file name you give your program, such as . .. 151Lab01.m> % BEE 151: Introduction to Computer Programming
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 09/11/2008 for the course BEE 1510 taught by Professor Staff during the Fall '05 term at Cornell.

Page1 / 5

01 - Laboratory Exercise Number 1 Getting Started with...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online