EGR 115 Introduction to Computing for Engineers Introduction to Computer Programming Wednesday 27 Aug 2014 EGR 115 Introduction to Computing for Engineers.

Slides:



Advertisements
Similar presentations
The Complete Technical Analysis and Development Environment An attractive alternative to MATLAB and GAUSS - Physics World.
Advertisements

Introduction to MATLAB Northeastern University: College of Computer and Information Science Co-op Preparation University (CPU) 10/20/2003.
Engineering Computation using MATLAB
Tuan Tran. What is CISC? CISC stands for Complex Instruction Set Computer. CISC are chips that are easy to program and which make efficient use of memory.
Data Analytics and Dynamic Languages Lee E. Edlefsen, Ph.D. VP of Engineering 1.
1 Classic ASP vs. ASP.NET Technical Information and Market Adoption Lance Welker University of San Diego Dr. Rebman MSIT 526 December 20, 2005.
Platforms for Agent-Based Computational Economics Rob Axtell Brookings CSED.
ENGR 3 rocks. Desktop-->Classes-->Matlab-Engineering-- >matlab_using_engineering_toolkits.bat.
Matlab as a Design Environment for Wireless ASIC Design June 16, 2005 Erik Lindskog Beceem Communications, Inc.
Chapter 4 - Software – Part 2 Dr. V.T. Raja Oregon State University.
Java How to Program, 9/e Instructor: José M. Reyes Álamo © by Pearson Education, Inc. All Rights Reserved.
What is R By: Wase Siddiqui. Introduction R is a programming language which is used for statistical computing and graphics. “R is a language and environment.
VIRTUAL PROTOTYPING of ROBOTS DYNAMICS E. Tarabanov.
MapleSim and the Advantages of Physical Modeling
Teaching with MATLAB - Tips and Tricks
© 2004 The MathWorks, Inc. 1 MATLAB for C/C++ Programmers Support your C/C++ development using MATLAB’s prebuilt graphics functions and trusted numerics.
CS110/CS119 Introduction to Computing (Java)
August 22, 2005 Lecture 1 - By P. Lin 1 CPET 190 Lecture 1 Problem Solving with MATLAB
Introduction to MATLAB adapted from Dr. Rolf Lakaemper.
Introduction to M ATLAB EE 100 – EE Dept. - JUST.
Computer Hardware and Software Chapter 1. Overview Brief History of Computers Hardware of a Computer Binary and Hexadecimal Numbers Compiling vs. Interpreting.
C++ Programming Language Lecture 1 Introduction By Ghada Al-Mashaqbeh The Hashemite University Computer Engineering Department.
1 Computer Programming (ECGD2102 ) Using MATLAB Instructor: Eng. Eman Al.Swaity Lecture (1): Introduction.
Numerical Methods in Scientific Computation Lecture 2 Programming and Software Introduction to error analysis Numerical Methods, Lecture 2 1 Prof. Jinbo.
1 ENERGY 211 / CME 211 Lecture 26 November 19, 2008.
MATLAB Harri Saarnisaari, Part of Simulations and Tools for Telecommunication Course.
Introduction to MATLAB adapted from Dr. Rolf Lakaemper.
The course. Description Computer systems programming using the C language – And possibly a little C++ Translation of C into assembly language Introduction.
Introduction to MATLAB 7 MATLAB Programming for Engineer Hassan Migdadi Spring 2013.
CS 127 Introduction to Computer Science. What is a computer?  “A machine that stores and manipulates information under the control of a changeable program”
Computer Software Types Three layers of software Operation.
EGR 115 Introduction to Computing for Engineers Loops and Vectorization – Part 2 Wednesday 15 Oct 2014 EGR 115 Introduction to Computing for Engineers.
Computer Science Faculty School of Software Engineering C INTERPRETER AND DEBUGGER (ISO/IEC 9899:2011) Developer: student of 203SE group: Lukyanov Dmitry.
Introduction ELEC 206 Computer Applications for Electrical Engineers Dr. Ron Hayne.
Introduction to MATLAB Northeastern University: College of Computer and Information Science Co-op Preparation University (CPU) 10/20/2003.
CSCI1600: Embedded and Real Time Software Lecture 6: Modeling I: Continuous Systems Steven Reiss, Fall 2015.
EGR 115 Introduction to Computing for Engineers MATLAB Basics 5: Applications – Vector Math Friday 12 Sept 2014 EGR 115 Introduction to Computing for Engineers.
CIS 601 Fall 2003 Introduction to MATLAB Longin Jan Latecki Based on the lectures of Rolf Lakaemper and David Young.
EGR 115 Introduction to Computing for Engineers MATLAB Basics 1: Variables & Arrays Wednesday 03 Sept 2014 EGR 115 Introduction to Computing for Engineers.
M ATLAB – What Is It ? Name is from matrix laboratory Powerful tool for – Computation and visualization of engineering and science mathematics – Communication.
Chapter 1 Basic Concepts of Operating Systems Introduction Software A program is a sequence of instructions that enables the computer to carry.
MATLAB Lecture 1 염익준. Introduction MATLAB (MATrix LABoratory) a special purpose computer program optimized to perform engineering and scientific calculations.
Lesson 1 1 LESSON 1 l Background information l Introduction to Java Introduction and a Taste of Java.
Java How to Program, 9/e Presented by: José M. Reyes Álamo © by Pearson Education, Inc. All Rights Reserved.
Math 252: Math Modeling Eli Goldwyn Introduction to MATLAB.
CIS 595 MATLAB First Impressions. MATLAB This introduction will give Some basic ideas Main advantages and drawbacks compared to other languages.
Lecture #1: Introduction to Algorithms and Problem Solving Dr. Hmood Al-Dossari King Saud University Department of Computer Science 6 February 2012.
M ATLAB – What Is It ? Name is from matrix laboratory Powerful tool for – Computation and visualization of engineering and science mathematics – Communication.
10/2/20161 Operating Systems Design (CS 423) Elsa L Gunter 2112 SC, UIUC Based on slides by Roy Campbell, Sam King,
Matlab Programming for Engineers
Matlab.
Hardware and Software Hardware refers to the physical devices of the computer system e.g. monitor, keyboard, printer, RAM etc. Software is a set of programs,
Introduction to programming
Introduction to Matlab
MATLAB Basics Nafees Ahmed Asstt. Professor, EE Deptt DIT, DehraDun.
Welcome to MATLAB.
Introduction to MATLAB
Part I – Matlab Basics.
Matlab as a Design Environment for Wireless ASIC Design
Use of Mathematics using Technology (Maltlab)
MATLAB – What Is It ? Name is from matrix laboratory Powerful tool for
Unit 20 Software Part 2.
Unit 20 Software Part 2.
CSCI1600: Embedded and Real Time Software
Communication and Coding Theory Lab(CS491)
How to stop C programming problems at the source
Introduction To Simulink
Simulation And Modeling
Introduction To MATLAB
Programming language translators
Presentation transcript:

EGR 115 Introduction to Computing for Engineers Introduction to Computer Programming Wednesday 27 Aug 2014 EGR 115 Introduction to Computing for Engineers

Lecture Outline Wednesday 27 Aug 2014 EGR 115 Introduction to Computing for Engineers Introduction to Programming  Why learn programming?  A first example  How to access MATLAB Slide 2 of 12

Introduction to Computer Programming Why Learn Programming? Wednesday 27 Aug 2014 EGR 115 Introduction to Computing for Engineers As engineers it is often more cost effective for us to “simulate” complex systems before implementation  Simulate = computer programming!!!  Testing on a simulated system is cheaper than building hardware  A system failure on a simulated system is less catastrophic than failure of hardware!!  The fidelity of the simulation determines the accuracy of the results  Most complex systems involve significant software (i.e., programming!!)  Analyzing the results of a test often involves programming!! Slide 3 of 12

Introduction to Computer Programming Why Learn Programming? Wednesday 27 Aug 2014 EGR 115 Introduction to Computing for Engineers It is often faster to write a program to automate a tedious/repetitive task (10x faster!!) Embedded computers are everywhere  Modern automobiles contain up to 50 microprocessors o They all require programming!! The software that runs the Boeing 787 has approximately 7 million lines of code Programming is a critical skill for engineers today and even more so tomorrow 100 M  The Chevrolet Volt has more lines of code than a Boeing 787!!! Future version will have up to 100 M lines of code!! Slide 4 of 12

Introduction to Computer Programming A First Example: Wednesday 27 Aug 2014 EGR 115 Introduction to Computing for Engineers A First Example Problem:  Design the suspension for an small car. o Select the shock absorber and spring so that the oscillations “diminish” after about 4 seconds.  Consider just one corner (i.e. 1 wheel) o Viscous damping of shock is “c” o Spring constant is “k” o Displacement is “X” o External force is “F”  Mathematical dynamic model F X Slide 5 of 12

Introduction to Computer Programming A First Example: Wednesday 27 Aug 2014 EGR 115 Introduction to Computing for Engineers Slide 6 of 12

Introduction to Computer Programming A First Example: Wednesday 27 Aug 2014 EGR 115 Introduction to Computing for Engineers Develop a “simple” MATLAB program to simulate the displacement vs time (i.e., system’s response)MATLAB program Define constants Compute parameters Calculate response Plot results Slide 7 of 12

Introduction to Computer Programming A First Example: Wednesday 27 Aug 2014 EGR 115 Introduction to Computing for Engineers Results: C = 10 C = 100 C = 50 Looks like a shock with damping of 50 N / (m/s) will do the job!!! Slide 8 of 12

Introduction to Computer Programming How to Access MATLAB: Wednesday 27 Aug 2014 EGR 115 Introduction to Computing for Engineers 1.MATLAB can be found on ERAU computers at:  All Programs  College of Engineering  MATLAB  We are currently using version 2013b 2.MATLAB can also be accessed via ERNIE:ERNIE  For home use (slow) 3.Can be purchased from the bookstore for ~$99 Slide 9 of 12

Introduction to Computer Programming The Advantages & Disadvantages of MATLAB: Wednesday 27 Aug 2014 EGR 115 Introduction to Computing for Engineers AdvantagesDisadvantages Ease of use Interpreted, allows interactive prototyping, and debugging Speed The interpreted nature of MATLAB makes it inherently slower to execute than some other languages Tools exist to speed up MATLAB code above interpreted speed Speed is frequently not important in experimental code Platform Independence Same MATLAB code can be executed on a broad range of machines and will provide identical results Predefined Functions Libraryof commonoperations(e.g., sin,…) Toolboxes forspecificapplications Cost Typically 10Xmore expensive MATLAB is not an open standardand is asingle-source vendor (i.e. MathWorksInc.) Device-Independent Plotting Allows visualization of results across many platforms (e.g., MAC, Linux, …) Graphical User Interface Can develop GUI for programs Memory MATLAB typically uses more memory than comparable programming languages MATLAB Compiler Stand-alone & Java-likep-code Slide 10 of 12

Introduction to Computer Programming History of MATLAB: Wednesday 27 Aug 2014 EGR 115 Introduction to Computing for Engineers MATLAB is an acronym for MATrix LABoratory  Simplifies programming with arrays (i.e., matrices and vectors) Development of MATLAB was begun by Dr. Cleve Moler, a CS professor from UNM, in the late 70’s.  For teaching programming to engineers MathWorks was founded in 1984  In 2004 MATLAB had over 1 million users Slide 11 of 12

Next Lecture Wednesday 27 Aug 2014 EGR 115 Introduction to Computing for Engineers Introduction to MATLAB  The Environment  Using MATLAB as a Calculator Slide 12 of 12