EngE_1104_Spring_2007_Lab_1_Students_Copy_V1A_TW

EngE_1104_Spring_2007_Lab_1_Students_Copy_V1A_TW -...

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

View Full Document Right Arrow Icon
Explorations Of Our Digital Future Spring 2007 Lab 1: An Introduction to Custom Made MatLab Functions Copyrighted by: Jeremy Garrett and Tom Walker, Jan. 2006 – Jan. 2007 Preparation: No special preparations required. No lab warm-up required for this particular lab. Lab Objective: To learn the requirements for creating the formally labeled graphs which will be required in this any many other courses To create an “auto-labeler” which will save us a great deal of time during the rest of the semester To explore ways in which MatLab can be used to solve simultaneous equations Lab Overview: Throughout this semester, and in the semesters to come you will be required to use MatLab in a variety of ways. In nearly all of the labs in this course you will be required to use MatLab functions that were custom designed by one or more of the professors here at Virginia Tech. In other labs, you, yourselves, will have to fill in the missing pieces of some of these custom made functions. In order to prepare you for those labs and for your future courses, this programming activity / lab will instruct you to make, test, and then use a pair of custom made functions. In Part 1, we will create an “auto-labeler” that will be needed for almost all of the labs in this course. In Part 2, we will make a function that reads in an angle in degrees and returns the sine value (the normal MatLab function reads in radians). Part 2 will then conclude by using the auto-labeler function on each of the resulting graphs. Parts 3, 4, and 5 are very short and provide us with an opportunity to explore one of the various methods of having MatLab solve simultaneous equations for us. Part 1: Part 1 – Background: As described above, we will create and test our custom made “auto-labeler” function that we will need in the labs to come. Part 1 – Procedure: Using the web-browser of your choice, go to the Blackboard site for this course. Then go to “Lab 1,” subfolder “Other Files Necessary For This Lab,” and download the file titled “How_to_Make_Your_Own_MatLab_Graph_Auto_Labeler.doc”.
Background image of page 1

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

View Full DocumentRight Arrow Icon
Follow the directions contained in that document in order to copy and paste the recommended code into a new MatLab function window and to save it as your own auto- labeler function. In order to test your new function, do the following: Enter the command “ X=0:1:90;” into your MatLab command window. (This command tells MatLab to create a variable called X that starts at 0, has steps of size 1 and stops at 90. Variables of these types are called “arrays,” “matrices,” or “vectors;” and are standard features of high-level programming languages which you may be familiar with. Think of them as “subscripted variables”.
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/19/2011 for the course ENGE 1114 taught by Professor Twknott during the Fall '06 term at Virginia Tech.

Page1 / 9

EngE_1104_Spring_2007_Lab_1_Students_Copy_V1A_TW -...

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