ME 208 - Introduction To Computing in Engineering Spring 2015 Welcome!!!
ME 208 - Introduction To Computing in Engineering Spring 2015 Welcome!!!
Engineering
Spring 2015
Welcome!!!
Introduction
A little about myself and the GTAs
Course Overview
Syllabus and Communication
Schedule
HW submission details
Course Overview
An introduction to programming methods
MATLAB, Labview
HW Submission Details
HWs will be assigned every Friday at 1 pm.
They will be due the following Friday at 8.00 am.
Individual files HAVE TO follow the following format:
lastname_firstname_questionno
NO LATE HW SUBMISSIONS!
Please sign up for grading times with the GTAs.
You must always go to your grading at the time you signed up for.
If you do not go in person, you will NOT BE GRADED.
Programming Basics
Algorithm
Simple step-by-step procedure used for problem solving.
Order of some steps is important.
Matlab vs Labview
MATLAB
LabVIEW
Matrix Laboratory
Introduction to
MATLAB
Command history
Editor
Current directory and path
Variables in Matlab
A variable can be created by assigning a value to it.
The value defines the data type of the variable.
Syntax
variable = expression;
Eg:
>> x = 20; Hit enter
What happens when you type 20 = x; ?
Variable Nomenclature
Must start with a letter
Case sensitive (a is not the same as A)
>> 2*10
>> a = 2*10
>> a = 2*22 ;
>> b = a/10;
What happens if you want to do all of the above again?
Arrays
One dimensional: x = [1 3 -1]
1 2 7
2 6 9
Scalar: array with 1 row and 1 column z = 5
Matrix: Two or more dimensions y =
String: an array of characters
Rockchalk Jayhawk
Array Operation
Addition +
Subtraction -
Multiplication *
Division /
Element-wise operations .*
./
.^
Announcements
Make sure you can login in computers with your user id.
Gain access to ME computer lab. If not please go to the ME office room
and get help.
Make sure you can access Blackboard via http://courseware.ku.edu
You should see two links: one for the project and the other for ME 208
SIGN FOR YOUR HW GRADING. Link available on Blackboard
announcements.