MCE 372 Engineering Analysis

Slides:



Advertisements
Similar presentations
MATLAB – A Computational Methods By Rohit Khokher Department of Computer Science, Sharda University, Greater Noida, India MATLAB – A Computational Methods.
Advertisements

1 EMT 101 – Engineering Programming Dr. Farzad Ismail School of Aerospace Engineering Universiti Sains Malaysia Nibong Tebal Pulau Pinang Week 10.
Welcome to EGR 106 Foundations of Engineering II Course information Today’s specific topics: – Computation and algorithms – M ATLAB Basics Demonstrations.
EGR 106 – Week 2 – Arrays Definition, size, and terminology Construction methods Addressing and sub-arrays Some useful functions for arrays Character arrays.
Java Programming Working with TextPad. Using TextPad to Work with Java This text editor is designed for working with Java You can download a trial version.
EGR 106 – Week 2 – Arrays & Scripts Brief review of last week Arrays: – Concept – Construction – Addressing Scripts and the editor Audio arrays Textbook.
Division Example 2x - 3y + 4z = 10 x + 6y - 3z = 4 -5x + y + 2z = 3 A*X = B where A = B = >> X = A\B X =
Digital Image Processing Lecture3: Introduction to MATLAB.
Programming For Nuclear Engineers Lecture 12 MATLAB (3) 1.
BRIAN D. HAHN AND DANIEL T. VALENTINE THIRD EDITION Essential MATLAB® for Engineers and Scientists.
EGR 106 Intro to Engineering II Engineering problem solving using MATLAB Text: Amos Gilat, MATLAB An Introduction with Applications, Wiley 2004 ISBN
THE MATLAB ENVIRONMENT VARIABLES BASIC COMMANDS HELP HP 100 – MATLAB Wednesday, 8/27/2014
Introduction to M ATLAB EE 100 – EE Dept. - JUST.
Objectives Understand what MATLAB is and why it is widely used in engineering and science Start the MATLAB program and solve simple problems in the command.
Lesson 6. GCSE Computing – programming languages Candidates should be able to:  describe common tools and facilities available in an integrated development.
Matlab Workshop 1/10/07 Lesson 1: Matlab as a graphing calculator.
MATLAB Tutorial EE 327 Signals and Systems 1. What is MATLAB? MATLAB – Matrix Laboratory The premier number-crunching software Extremely useful for signal.
Eng Ship Structures 1 Introduction to Matlab.
1 Computer Programming (ECGD2102 ) Using MATLAB Instructor: Eng. Eman Al.Swaity Lecture (1): Introduction.
Chapter 1: Getting Started with MATLAB MATLAB for Scientist and Engineers Using Symbolic Toolbox.
What is MATLAB? MATLAB is one of a number of commercially available, sophisticated mathematical computation tools. Others include Maple Mathematica MathCad.
CMPS 1371 Introduction to Computing for Engineers MatLab.
Visual Basic.NET BASICS Lesson 1 A First Look at Microsoft Visual Basic.NET.
Chapter 1 – Matlab Overview EGR1302. Desktop Command window Current Directory window Command History window Tabs to toggle between Current Directory &
MCE 372 Engineering Analysis MATLAB Review. M ATLAB – What Is It ? Where Is It? Name is from matrix laboratory Powerful tool for – Computation and visualization.
Introduction to MATLAB 7 MATLAB Programming for Engineer Hassan Migdadi Spring 2013.
Lecture 20: Choosing the Right Tool for the Job. What is MATLAB? MATLAB is one of a number of commercially available, sophisticated mathematical computation.
ENG College of Engineering Engineering Education Innovation Center 1 Basic For Loops in MATLAB Programming in MATLAB / Chapter 6 Topics Covered:
1 EMT 101 – Engineering Programming Dr. Farzad Ismail School of Aerospace Engineering Universiti Sains Malaysia Nibong Tebal Pulau Pinang Week 10.
Introduction to Matlab Patrice Koehl Department of Biological Sciences National University of Singapore
M ATLAB – What Is It ? Name is from matrix laboratory Powerful tool for – Computation and visualization of engineering and science mathematics – Communication.
NET 222: COMMUNICATIONS AND NETWORKS FUNDAMENTALS ( NET 222: COMMUNICATIONS AND NETWORKS FUNDAMENTALS (PRACTICAL PART) Tutorial 2 : Matlab - Getting Started.
Math 252: Math Modeling Eli Goldwyn Introduction to MATLAB.
Introduction to Programming on MATLAB Ecological Modeling Course Sep 11th, 2006.
MATLAB (Matrix Algebra laboratory), distributed by The MathWorks, is a technical computing environment for high performance numeric computation and.
M ATLAB – What Is It ? Name is from matrix laboratory Powerful tool for – Computation and visualization of engineering and science mathematics – Communication.
Physics 114: Lecture 1 Overview of Class Intro to MATLAB
Reading and Writing Image Files
Matlab Programming for Engineers
Introduction to Matlab
Computer Application in Engineering Design
Microsoft Visual Basic 2005 BASICS
Introduction to Matlab
Appendix B MathScript Basics
Lecture 25.
Introduction to MATLAB
MATLAB Basics Nafees Ahmed Asstt. Professor, EE Deptt DIT, DehraDun.
Two-Dimensional Plots
Outline Matlab tutorial How to start and exit Matlab Matlab basics.
INTRODUCTION TO BASIC MATLAB
MATLAB DENC 2533 ECADD LAB 9.
Lecture 1: Introduction
Social Media And Global Computing Introduction to Visual Studio
MATH 493 Introduction to MATLAB
Use of Mathematics using Technology (Maltlab)
MATLAB – What Is It ? Name is from matrix laboratory Powerful tool for
MATLAB Tutorial Dr. David W. Graham.
MATLAB – What Is It ? Name is from matrix laboratory Powerful tool for
MATLAB – What Is It ? Name is from matrix laboratory Powerful tool for
Plotting Data with MATLAB
Plotting Multiple Graphs In The Same Plot
MATLAB How to use (using M-files)
Digital Image Processing
Communication and Coding Theory Lab(CS491)
CSCI N317 Computation for Scientific Applications Unit 1 – 1 MATLAB
Introduction to MATLAB
Experiment No. (1) - an introduction to MATLAB
Using Script Files and Managing Data
Scripts In Matlab.
Importing Excel Data & Exporting Data to Excel
Presentation transcript:

MCE 372 Engineering Analysis MATLAB Review

MATLAB – What Is It ? Where Is It? Name is from matrix laboratory Powerful tool for Computation and visualization of engineering, science and mathematics Communication of ideas Programming: Built-in editor, debugger, and help Many predefined functions (grouped in toolboxes) Interpreted or compiled programs Located on all ECC PC’s & in many department facilities

How Do We Want To Use MATLAB In This Course? Write Simple MATLAB Programs to Do the Following: - Perform Particular Calculations Display/Plot Results for Interpretation

Creating Your Own Program Script (m-file) Concept M-file is a collection of MATLAB commands Can be re-executed Is easily changed/modified, transferred or e-mailed File format: Name.m Commands are executed one by one sequentially File is executed by typing its name (without .m) Results appear in the command window (or use ; ) Can be created using any text editor, but is most easily developed in MATLAB Editor Window

Boot Up Default MATLAB Window Help menu provides answers to most questions Opens Editor Window to create new program In this window: - type & edit commands - test & run program - save work when finished

Demo MATLAB Code Calculate & Plot Equation: y=2x+30x2-2x3 Dot needed for element-by-element operation Semicolon used to suppress output to Command Window – commonly desired

Plotting Line Specifiers Line Specifiers Change the Look Especially Handy When Plotting Several Lines on Same Graph Use Help Menu to Find Out More

Example Code % MCE 372 Demo Program % Make Multiple Plots on Same Axes with Legends clc;clear all;clf x=0:0.1:10; y1=2*x+30*x.^2; y2=10*x.^3; y3=200*x % Plot all functions on same axes plot(x,y1,'k','linewidth',2) hold on;grid on plot(x,y2,'b','linewidth',2) plot(x,y3,'r','linewidth',2) xlabel('x');ylabel('y') title('MCE 372 Demo Plot') legend('y1','y2','y3')