Sie sind auf Seite 1von 24

CSE 1010

Introduction to computing in MATLAB

Instructor: Sahar Al Seesi


Office: ITE 260
email: sahar@engr.uconn.edu
Office hours: Tuesday
10 a.m. 11 a.m.
Wednesday 2 p.m. 4 p.m.

Trivia Question
Where do I come from?
A) India
B) Pakistan
C) Egypt
D) Saudi Arabia
E) Turkey
Answer using i>clicker

Text Book Alternative


CSE1010 package consists of
three components
Component 1

Introduction to MATLAB (2nd


Edition) by Delores M. Etter

Text Book Alternative


CSE1010 package consists of three
components
Component 2

An Arduino microcontroller kit


Available at
http://
yourduino.com/sunshop2/index.php?l=product_det
ail&p=395

Text Book Alternative


CSE1010 package consists of three
components
Component 3

Getting Started with Arduino (2nd Edition) by


Massimo Banzi

i>clicker
In addition to the text book, we will use
i>clicker
Available new and used at the Co-op and on
amazon
Can use i>clicker GO, instead

Web-based
through laptop or mobile device
http://www1.iclicker.com/mobile-polling-iclicker-go

Will start recording participation through


i>clicker for credit starting Monday 02/03
7

Announcement

CSD is seeking a qualified notetaker for


CSE1010
Good academic standing (cumulative GPA of 2.5
or higher for undergraduates; 3.0 or higher for
graduates);
Completion of the CSD online notetaking
assistance training program (to be completed
immediately after hiring);
Regular class attendance;
Ability totype and upload comprehensive notesto
the CSD Notetaking website;

CSE 1010
Introduction to computing in MATLAB

The course will cover the following areas:


Problem-solving with the computer.
Familiarity with programming in MATLAB
Implement algorithms using MATLAB to
solve engineering problems
Test and debug MATLAB programs

10

Why take this course?

What is your major/intended major?


A)
B)
C)
D)
E)

Computer Science
Engineering (not CSE)
Natural Sciences
Business
Other/Undecided

11

Why take this course?


Why should engineers learn
programming?
Engineering:

Applying science and mathematics to the


optimum conversion of the resources of
nature to the uses of humankind
Involves problem solving
Involves finding optimum solutions

12

Not an engineer?

Computing is an essential part of our lives


and is part of many interdisciplinary fields

Computational biology
Computational biochemistry
Human assistance
Business information systems
Education

13

When to write a program to


solve a problem
No

No

Solve by hand

Need to
solve
multiple
instances
?

Complex
problem?

Yes

Yes

Write a program

Most problems will fall in this


category

14

MATLAB
MATLAB

= Matrix Laboratory
Developed for engineers to create,
manipulate and visualize matrices.
Matrix: a set of values arranged in
rows and columns (ex: Students
grades)

15

MATLAB
MATLAB

= Matrix Laboratory
Developed for engineers to create,
manipulate and visualize matrices.
Matrix: a set of values arranged in
rows and columns (ex: Students
grades)
Interactive

system and
programming language
16

How is MATLAB used in


Industry/Academia?
Widespread

use in industry

Biomedical data processing


Image and Video processing
Signal processing
Tool

of choice in academia
for many engineering fields
17

Why MATLAB?
Simpler

than advanced programming


languages
Provides powerful numerical
calculations, especially with matrices
Provides professional looking reports
using its built in graphical
capabilities

18

Example: Creating a histogram


In MATLB

>> hist(x);

Alternatively, in Excel
http://support.microsoft.com/kb/214269

Not as easy to do in C++ or Java either!


19

When to use MATLAB

Graphing data

Matrix calculations
Many problems can be formulated as matrices
analysis problems

Developing a quick prototype for a complex


algorithm
It might be more time and space efficient to
develop the final version in a language like C++

20

When to use MATLAB

Example : Write code to analyze gene


expression profiles for a number of biological
samples and graph the results in a heat map
Write a program to do the analysis in C++ or Java
Use MATLAB to create the heat map in simply 2 or
three commands

21

What to expect from this course

Your first step into programming


By the end of the semester you will be able to
write from scratch relatively complex programs
Student projects from last semester included
Tic-tac-toe game
Simplified gene-expression analysis program

You will learn the main programming constructs


and logic shared between all programming
languages.

Your first step into MATLAB


You will be familiar with the environment that you
can explore more on your own
22

Pop quizzes on previously


covered material

Participation in discussion on new


covered material bonus points for
correct answers (up to 2% of final
grade)
23

How to succeed in this


course?

Always attend lecture and labs and be on time


If you go to the lab late, you limit your chance of
finishing and submitting the lab assignment

Go to the lab prepared by studying the


material that was covered in the lecture
Start working on HW early

The first couple of HW assignments will be simple,


but things will progress rapidly.

ASK FOR HELP!!!!!


With HW, general questions, getting ready for

exams
24

Das könnte Ihnen auch gefallen