Engr 6: Matlab Programming

Slides:



Advertisements
Similar presentations
Introduction to Applications & Basic Features. What is MATLAB®? MATLAB® /Simulink® is a powerful software tool for: Performing mathematical computations.
Advertisements

MATLAB – A Computational Methods By Rohit Khokher Department of Computer Science, Sharda University, Greater Noida, India MATLAB – A Computational Methods.
Java Programming, 3e Concepts and Techniques Chapter 3 Section 63 – Manipulating Data Using Methods – Day 2.
Introduction to Matlab. I use Matlab for: Data analysis Data plotting Image Analysis Also – Simulations (solving odes/pdes/finite element methods) – Minimisations,
Process simulation, optimisation and design. P.S.O.D. ORGANIZATION ISSUES.
Week 6 - Programming I So far, we’ve looked at simple programming via “scripts” = programs of sequentially evaluated commands Today, extend features to:
Introduction to MATLAB Week 13 – 4/21/09. Instructor: Kate Musgrave Time: Tuesdays 3-5pm Office Hours: Tuesdays 1:30-3pm
Introduction to MATLAB 7 for Engineers
Lecture 2 MATLAB fundamentals Variables, Naming Rules, Arrays (numbers, scalars, vectors, matrices), Arithmetical Operations, Defining and manipulating.
EGR 106 Intro to Engineering II Engineering problem solving using MATLAB Text: Amos Gilat, MATLAB An Introduction with Applications, Wiley 2004 ISBN
Relational and Logical Operators Selim Aksoy Bilkent University Department of Computer Engineering
Introduction to MATLAB ENGR 1187 MATLAB 1. Programming In The Real World Programming is a powerful tool for solving problems in every day industry settings.
Computer Science 1000 Spreadsheets II Permission to redistribute these slides is strictly prohibited without permission.
EGR 106 Intro to Engineering II Engineering problem solving using MATLAB Text: Amos Gilat, MATLAB An Introduction with Applications, Wiley 2004 ISBN
Introduction to MATLAB
Lecture 4 MATLAB Windows Arithmetic Operators Maintenance Functions
Math 15 Lecture 7 University of California, Merced Scilab A “Very” Short Introduction.
ECE 1304 Introduction to Electrical and Computer Engineering Section 1.1 Introduction to MATLAB.
ENG 1181 College of Engineering Engineering Education Innovation Center MATLAB is a powerful program for numerical computations, plotting and programming.
Introduction to MATLAB ENGR 1181 MATLAB 1. Programming In The Real World Programming is a powerful tool for solving problems in every day industry settings.
Input, Output, and Processing
Lecture 1 - Introduction June 3, 2002 CVEN 302. Lecture’s Goals General Introduction to CVEN Computer Applications in Engineering and Construction.
Intro to Matlab 1.Using scalar variables 2.Vectors, matrices, and arithmetic 3.Plotting 4.Solving Systems of Equations Can be found at:
Getting Started with MATLAB 1. Fundamentals of MATLAB 2. Different Windows of MATLAB 1.
Introduction to Engineering MATLAB – 2 Introduction to MATLAB - 2 Agenda Defining Variables MATLAB Windows.
Introduction to Programming with RAPTOR
Copyright © 2012 Pearson Education, Inc. Publishing as Pearson Addison-Wesley C H A P T E R 2 Input, Processing, and Output.
Introduction to MATLAB ENGR 1181 MATLAB 1. Opening MATLAB  Students, please open MATLAB now.  CLICK on the shortcut icon → Alternatively, select… start/All.
ME6104: CAD. Module 4. ME6104: CAD. Module 4. Systems Realization Laboratory Module 4 Matlab ME 6104 – Fundamentals of Computer-Aided Design.
1 Week 1: Variables, assignment, expressions READING: 1.2 – 1.4.
What is Matlab Course Goals Precedence Accounts & Login Variables Error Types Course Logistics Vince Bertsch Office:
Introduction to Computer Programming
INTRODUCTION TO MATLAB MATLAB is a software package for computation in engineering, science, and applied mathemat-ics. It offers a powerful programming.
Engineering Analysis – Fall 2009 Dan C. Marinescu Office: HEC 439 B Office hours: Tu-Th 11:00-12:00.
1 Lecture 1 Post-Graduate Students Advanced Programming (Introduction to MATLAB) Code: ENG 505 Dr. Basheer M. Nasef Computers & Systems Dept.
Lecture 20: Choosing the Right Tool for the Job. What is MATLAB? MATLAB is one of a number of commercially available, sophisticated mathematical computation.
Doing math In java.
Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley STARTING OUT WITH Python Python First Edition by Tony Gaddis Chapter 2 Input,
MATLAB Lecture 1 염익준. Introduction MATLAB (MATrix LABoratory) a special purpose computer program optimized to perform engineering and scientific calculations.
NET 222: COMMUNICATIONS AND NETWORKS FUNDAMENTALS ( NET 222: COMMUNICATIONS AND NETWORKS FUNDAMENTALS (PRACTICAL PART) Tutorial 2 : Matlab - Getting Started.
1 Faculty Name Prof. A. A. Saati. 2 MATLAB Fundamentals 3 1.Reading home works ( Applied Numerical Methods )  CHAPTER 2: MATLAB Fundamentals (p.24)
BASICS OF MATLAB Engr.Mian Shahzad Iqbal Lecturer,Telecom Department University of Engineering & Technology Taxila.
Thinking about programming
1.3 ARITHMETIC OPERATIONS WITH SCALARS
ECE 1304 Introduction to Electrical and Computer Engineering
Topics Designing a Program Input, Processing, and Output
MATLAB® An Introduction.
BASIC ELEMENTS OF A COMPUTER PROGRAM
Design & Technology Grade 7 Python
2) Platform independent 3) Predefined functions
INTRODUCTION TO BASIC MATLAB
MATLAB DENC 2533 ECADD LAB 9.
1 Step Equation Practice + - x ÷
Use of Mathematics using Technology (Maltlab)
Programming Right from the Start with Visual Basic .NET 1/e
Welcome to the Fundamentals of Mathematics for Engineers Lab
Digital Image Processing
Topics Designing a Program Input, Processing, and Output
Topics Designing a Program Input, Processing, and Output
Introduction to Matlab
CS150 Introduction to Computer Science 1
A mathematical phase containing numbers.
Topics Designing a Program Input, Processing, and Output
Simulation And Modelling
A mathematical phase containing numbers.
Experiment No. (1) - an introduction to MATLAB
Topics Designing a Program Input, Processing, and Output
Introduction To MATLAB
Introduction to MATLAB
Electrical and Computer Engineering Department SUNY – New Paltz
Presentation transcript:

Engr 6: Matlab Programming Engr 6 Matlab Lec 1 Intro Engr 6: Matlab Programming What is Matlab Course Goals Precedence Accounts & Login Variables Error Types Course Logistics Vince Bertsch Office: 1776 527-4621 vbertsch@santarosa.edu

What Does Matlab Do? Numerical Computations Visualization/Graphing Programmable (interpreted) Symbolic Equations Toolboxes for Engineering Graphical User Interfaces Data Acquisition Simulation & Design Signal Processing Image Processing Control Systems Fuzzy Logic Calculator Excel C++, Java, Assembly Mathematica, Maple Lab View, Logger Pro

Use care when applying goals. Course Goals Computer programming skills Computer as a tool for analysis & display Collaboration for efficient learning & skill building Matlab specific knowledge Goals may cause recurring problems due to narrowed focus and decreased intrinsic motivation. Use care when applying goals.

Scalar Operations & Precedence ( ) parentheses ^ power / * \ multiplication & division + - addition & subtraction Precedence Bingo Mark your 9 squares with numbers from 1 to 25 (no duplicates)

Accounts & Login Instructor will give each of you a unique login number, it’s the x. You will be prompted to make a new password (case sensitive). User: engr-x Pswd: x Dom: apptech

Variables Case sensitive 32 character max No spaces or math symbols *^-[.{;(%=@:... Avoid command names & predefined constants sin, exp, size, max, format, help NaN, pi, Inf, i, j, eps, ans, = is assignment operator (not the math symbol) >> VinHtInch = 6*12 + 6 >> y+5=6 syntax error Name returns the value >> VinHtCM = 2.54*VinHtInch

Error Types Syntax error Logical error Computer gives red error message Computer says, “I don’t understand.” Logical error Result happens, but is wrong User says, “That’s not what I meant.” >> VinHtInch = 6*10 + 6; >> VinHtCM = 2.54*VinHtinch ??? Undefined function or variable 'VinHtinch'.

Course Logistics Syllabus Schedule Labs Assignment #1 Reminder 1799 1751 1737 Assignment #1 Reminder