CPET190_Lect1

Embed Size (px)

Citation preview

  • 8/12/2019 CPET190_Lect1

    1/21

    August 22, 2005 Lecture 1 - By P. Lin 1

    CPET 190

    Lecture 1

    Problem Solving withMATLAB

    http://www.etcs.ipfw.edu/~lin

  • 8/12/2019 CPET190_Lect1

    2/21

    August 22, 2005 Lecture 1 - By P. Lin 2

    Lecture 1: Introduction

    IntroductionObjectives of the Course

    Course Syllabus and Class Objectives Problem Solving

    What is a Problem & Problem Solving

    Why Teach Problem Solving

    Types of Problems Collaborative, Team-Based Problem Solving

    Problem Solving with a Computer

    Define the problem

    Formulate a mathematical model Develop an algorithm

    Write the codes for the problem

    Test program and verify the solution

    Document the program and solution

  • 8/12/2019 CPET190_Lect1

    3/21

    August 22, 2005 Lecture 1 - By P. Lin 3

    Lecture 1: Introduction(continue)

    Introduction to MATLAB What is MATLAB

    The Advantages of MATLAB

    Disadvantages of MATLAB

    The MATLAB Environment

    A Sample MATLAB Session

    Example 1: Calculate I = watt/volt

    Example 2: Calculate the area of a circle with aradius of 0.001 inch (r2).

    Example 3: Sum of 12 numbers with continuestatement on successive lines by typing anellipsis () at the end of the first line

  • 8/12/2019 CPET190_Lect1

    4/21

    August 22, 2005 Lecture 1 - By P. Lin 4

    Syllabus

    WebCT: http://webct.ipfw.edu/

    Web Site:

    http://www.etcs.ipfw.edu/~lin Email: [email protected]

    Test Date

    Grading

    http://webct.ipfw.edu/http://www.etcs.ipfw.edu/~linmmailto:[email protected]:[email protected]://www.etcs.ipfw.edu/~linmhttp://webct.ipfw.edu/
  • 8/12/2019 CPET190_Lect1

    5/21

    August 22, 2005 Lecture 1 - By P. Lin 5

    Course Outcomes

    1. Knowledge and skills of using MATLAB as a practical,technical problem solving tools (Criterion 2, Item a)

    2. An ability to apply problem solving sills in mathematicsand engineering technology problems (Criterion 2, Item b)

    3. An ability to discuss ways and means of analyzingtechnical data (Criterion 2, Item c)

    4. An ability to practice technical problem solving processincluding problem formulation, understand the problem,problem analysis, collect data, model development,algorithm development, solution implementation, solutionverification, and report/presentation (Criterion 2, Items c,d, f, g)

    5. Understanding of professional and ethical responsibility

    (Criterion 2, Item i, j)6. Understanding of the contemporary engineering

    technology application issues (Criterion 2, Item k)

  • 8/12/2019 CPET190_Lect1

    6/21

    August 22, 2005 Lecture 1 - By P. Lin 6

    Text Book & References Text book:

    MATLLAB Programming for Engineers, newest Edition, by Stephen

    J. Chapman, 3rd

    ., from Brooks/Cole Thomson Learning,http://info.brrokscole.com/chapman

    Computer, Software, Internet Connection: MATLAB Student Version with SIMULINK, available for purchase

    from The MathWorks, Inc., http://mathworks.com

    Off campus students are required to have their own PCs, andinstall Student version of MATLAB and SIMULINK.

    Internet connection from home, IPFW, or work is required.

    References

    Math Problem Solving, John Hopkins University,http://cty.jhu.edu/math/solving/

    Mathworks MATLAB Examples,

    http://www.mathworks.com/access/helpdesk/help/techdoc/matlab.shtml

    MATLAB Basics -http://www.maths.uq.edu.au/~mrb/tutors/matlabbasics.html

    MATLAB Basic Tutorial,http://www.engin.umich.edu/group/ctm/basic/basic.html

    http://info.brrokscole.com/chapmanhttp://mathworks.com/http://cty.jhu.edu/math/solving/http://www.mathworks.com/access/helpdesk/help/techdoc/matlab.shtmlhttp://www.mathworks.com/access/helpdesk/help/techdoc/matlab.shtmlhttp://www.maths.uq.edu.au/~mrb/tutors/matlabbasics.htmlhttp://www.engin.umich.edu/group/ctm/basic/basic.htmlhttp://www.engin.umich.edu/group/ctm/basic/basic.htmlhttp://www.maths.uq.edu.au/~mrb/tutors/matlabbasics.htmlhttp://www.mathworks.com/access/helpdesk/help/techdoc/matlab.shtmlhttp://www.mathworks.com/access/helpdesk/help/techdoc/matlab.shtmlhttp://cty.jhu.edu/math/solving/http://mathworks.com/http://info.brrokscole.com/chapman
  • 8/12/2019 CPET190_Lect1

    7/21

    August 22, 2005 Lecture 1 - By P. Lin 7

    Overview of the Course

    Topics of Discussion Problem solving definition, process, techniques,

    strategies, tools, etc

    MATLAB basics and advanced data types,commands, script, functions, and program controls

    Math Equations and their graphs Elementary MATLAB Math functions and their

    applications

    Programming with MATLAB, File I/Os

    MATLAB Problem Solving Applications in

    Electronics and Electrical, Physics, EngineeringTechnology, Data Analysis, etc

    Problem Solving Projects: team-based, collaborativeproblem solving

  • 8/12/2019 CPET190_Lect1

    8/21

    August 22, 2005 Lecture 1 - By P. Lin 8

    Problem Solving

    Definition of Problem Solving

    What is a Problem1,2A situation, quantitative orotherwise, that confronts an individual or group ofindividuals for a specific purpose that requiresresolution, and for which the individual see no apparentor obvious means or path to obtaining the solution.

    What is Problem Solving1,2A process in which one

    individual uses previously acquired knowledge, skills,and understanding to satisfy the demands of anunfamiliar situation.

    Why Teach Problem Solvingstimulate students topractice critical thinking and prepares students to usemath, physics, science, and discipline specific

    knowledge to solve real-world problems.

    [1] Problem Solving, A Handbook for Teacher, by Stephen Krulik and JesseA. Rudnick, published by Allyn and Bacon, Inc., Massachusetts, 1980.

    [2] Problem SolvingTerminologies,http://www.mediafrontier.com/Article/PS/PS.htm

    http://www.mediafrontier.com/Article/PS/PS.htmhttp://www.mediafrontier.com/Article/PS/PS.htm
  • 8/12/2019 CPET190_Lect1

    9/21

    August 22, 2005 Lecture 1 - By P. Lin 9

    Problem Solving (continue)

    Types of Problems3

    Well-Defined Problems

    Solved using standard methods, methods of similarproblems, or methods of analog problems

    Examples: puzzles, simple games, low-level math,science, and engineering

    ILL-Defined Problems Unexplored problem domains

    Not clear what the problem is and what the solution is

    Approximate solution

    Wicked-Defined Problems

    Worse than ill defined problem Contains contradictory requirements

    Inventive/creative solutions

    [3] Problem Solving, http://cs.wwc.edu/~aabyan/Design/probSolv.html

    http://cs.wwc.edu/~aabyan/Design/probSolv.htmlhttp://cs.wwc.edu/~aabyan/Design/probSolv.html
  • 8/12/2019 CPET190_Lect1

    10/21

    August 22, 2005 Lecture 1 - By P. Lin 10

    Collaborative, Team-Based

    Problem Solving

    4Today's industrial environments, problem solvinggenerally utilizes teams of people, from differentcountries, with different backgrounds andexpertise to bring to bear on problems that oftencross over formation, processing, manufacturing,

    distribution and marketing.

    4Not all technically correct answers are feasible incommercial practice.

    4For example, a correct solution cannot beimplemented because it is contrary to themarketing strategy for the product or that thesolution may require greater capitol expenditurethan is economically feasible

    [4] Technical Problems and Problem Solving,

    http://class.fst.ohio-

    state.edu/fst696/696%20Technical%20Problems%20and%20Problem%20solving.htm

    http://class.fst.ohio-state.edu/fst696/696%20Technical%20Problems%20and%20Problem%20solving.htmhttp://class.fst.ohio-state.edu/fst696/696%20Technical%20Problems%20and%20Problem%20solving.htmhttp://class.fst.ohio-state.edu/fst696/696%20Technical%20Problems%20and%20Problem%20solving.htmhttp://class.fst.ohio-state.edu/fst696/696%20Technical%20Problems%20and%20Problem%20solving.htmhttp://class.fst.ohio-state.edu/fst696/696%20Technical%20Problems%20and%20Problem%20solving.htm
  • 8/12/2019 CPET190_Lect1

    11/21

    August 22, 2005 Lecture 1 - By P. Lin 11

    Problem Solving with a Computer5

    Define the problem

    Formulate a mathematical model

    Develop an algorithm

    Write the code for the problem

    Test program and verify the solution

    Document the program and solution

    [5] Problem Solving with a Computer,

    http://www.aspire.cs.uah.edu/textbook/introcomp6004.html

  • 8/12/2019 CPET190_Lect1

    12/21

    August 22, 2005 Lecture 1 - By P. Lin 12

    Problem Solving in this Course

    Needs

    Basic skills of mathematics, electrical and

    electronics

    Critical thinking MATLAB: Engineering and science

    computing tool

  • 8/12/2019 CPET190_Lect1

    13/21

    August 22, 2005Lecture 1 - By P. Lin

    13

    Introduction to MATLAB

    What is MATLAB? Short for MATrix LABoratory

    Capable of solving any technical problems

    A Special-purpose, interpreter-based, computer

    program for technical computing and simulation,engineering and scientific computing, numericalcomputation and visualization without intensiveprogramming knowledge.

    MATLAB computing environment

    6The company Mathworks www.mathworks.com.

    [6] The MathWorks, http://www.mathworks.com/

  • 8/12/2019 CPET190_Lect1

    14/21

    August 22, 2005Lecture 1 - By P. Lin

    14

    Introduction to MATLAB(continue)

    The Advantage of MATLAB Ease of Use

    Platform Independence

    Predefined Functions

    Device-Independent Plotting

    Graphical User Interface

    MATLAB Compiler

    Disadvantages of MATLAB Interpreted languageslow

    Cost

  • 8/12/2019 CPET190_Lect1

    15/21

    August 22, 2005 Lecture 1 - By P. Lin 15

    Introduction to MATLAB(continue)

    The MATLAB Environment includes Graphical user interface

    MATLAB desktop and Command Window

    A command history

    An editor and debugger, and

    A Browser for viewing help, the workspace, files,

    and the search path.

  • 8/12/2019 CPET190_Lect1

    16/21

    August 22, 2005 Lecture 1 - By P. Lin 16

    Introduction to MATLAB(continue)

    MATLAB Desktopthe main interface for working

    with MATLAB

  • 8/12/2019 CPET190_Lect1

    17/21

    August 22, 2005 Lecture 1 - By P. Lin 17

    MATLAB Electrical Calculator:an Interactive Session

    Start MATLAB

    Example1: Enter the

    following lines on the

    MATLAB Command

    Windows

    >> watt = 100;

    >> volt = 110;

    >> i = watt/volt

    i =

    0.9091

    Double Click the Command

    in the Command History

    Window

    Workspace

    Command

    Window

    Command

    History

  • 8/12/2019 CPET190_Lect1

    18/21

    August 22, 2005 Lecture 1 - By P. Lin 18

    MATLAB Electrical Calculator:an Interactive Session(continue)

    Example 2: Calculate the area of acircle with a radius of 0.001 inch (r2).

    >> pi

    ans =3.1416

    >> area = pi*0.001^2

    area =

    3.1416e-006

    >>

  • 8/12/2019 CPET190_Lect1

    19/21

    August 22, 2005 Lecture 1 - By P. Lin 19

    MATLAB: an Interactive Session

    Example 3: Sum of 12 numbers withcontinue statement on successive lines bytyping an ellipsis () at the end of the firstline

    >> x = 1 + 2+3+4+5+6+7+8+9+10+11+12x =

    78

    >> x = 1 + 2 + 3 + 4 + ...

    5 + 6 + 7 + 8 + 9 + 10 + 11 + 12x =

    78

  • 8/12/2019 CPET190_Lect1

    20/21

    August 22, 2005 Lecture 1 - By P. Lin 20

    Summary

    Problem Solving Problem Solving with a Computer

    Introduction to MATLAB

    A Sample MATLAB Session

    Example 1: Calculate I = watt/volt

    Example 2: Calculate the area of a circlewith a radius of 0.001 inch (r2).

    Example 3: Sum of 12 numbers withcontinue statement on successive lines bytyping an ellipsis () at the end of the first

    line Next: Math Problem Solving with MATLAB

  • 8/12/2019 CPET190_Lect1

    21/21

    August 22, 2005 Lecture 1 - By P. Lin 21

    Question?

    Answers

    Email: [email protected]