M A T L A B Eng. Osama Talaat Faculty of Engineering, Zagazig University, Egypt 2013 1.

Slides:



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

Lecture (4) Plotting & Programming (1) Eng. Osama Talaat 1.
Hyperbolic Functions.
Welcome to EGR 106 Foundations of Engineering II Course information Today’s specific topics: – Computation and algorithms – M ATLAB Basics Demonstrations.
Introduction to MATLAB 7 for Engineers
Introduction to MATLAB
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Introduction to MATLAB 7 for Engineers William J. Palm.
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.
MATLAB INTRO CONTROL LAB1  The Environment  The command prompt Getting Help : e.g help sin, lookfor cos Variables Vectors, Matrices, and Linear Algebra.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. A Concise Introduction to MATLAB ® William J. Palm III.
1 Chapter 1 MATLAB Primer This introductory chapter is relatively short and has as its main objective the introduction of MATLAB ® to the reader. This.
1 Computer Programming (ECGD2102 ) Using MATLAB Instructor: Eng. Eman Al.Swaity Lecture (2): MATLAB Environment (Chapter 1)
Data, graphics, and programming in R 28.1, 30.1, Daily:10:00-12:45 & 13:45-16:30 EXCEPT WED 4 th 9:00-11:45 & 12:45-15:30 Teacher: Anna Kuparinen.
Lecture 4 MATLAB Windows Arithmetic Operators Maintenance Functions
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.
MATLAB WORKSHOP FOR EE 327FOR EE 327 MWF 8: AMMWF 8: AM August 26-30, 2002August 26-30, 2002 Dr. Ali A. Jalali.
MEGN 536 – Computational Biomechanics MATLAB: Getting Started Prof. Anthony J. Petrella Computational Biomechanics Group.
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.
Introduction to Engineering MATLAB – 1 Introduction to MATLAB Agenda Introduction Arithmetic Operations MATLAB Windows Command Window Defining Variables.
Slide deck by Dr. Greg Reese Miami University MATLAB An Introduction With Applications, 5 th Edition Dr. Amos Gilat The Ohio State University Chapter 1.
1 Computer Programming (ECGD2102 ) Using MATLAB Instructor: Eng. Eman Al.Swaity Lecture (1): Introduction.
Lecture 1 - Introduction June 3, 2002 CVEN 302. Lecture’s Goals General Introduction to CVEN Computer Applications in Engineering and Construction.
Chapter 1: Getting Started with MATLAB MATLAB for Scientist and Engineers Using Symbolic Toolbox.
Mathematics for IT Lecture 4 trigonometric. TRIG REVIEW Trig Function Evaluation : How to use the unit circle to find the value of trig functions at some.
Intro to Matlab 1.Using scalar variables 2.Vectors, matrices, and arithmetic 3.Plotting 4.Solving Systems of Equations Can be found at:
1 MatLab Basics Jae Hoon Kim Department of Physics Kangwon National University It contains hundreds of commands to do mathematics. Graph functions, solve.
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.
CMPS 1371 Introduction to Computing for Engineers MatLab.
Josh Xiaomin Xi PhD Candidate Feb 27, 2013 A tutorial from.
Introduction to Matlab
Introduction to MATLAB ENGR 1181 MATLAB 1. Opening MATLAB  Students, please open MATLAB now.  CLICK on the shortcut icon → Alternatively, select… start/All.
OUTLINE Overview Numbers, variables and similar in Matlab
Lecture 1: Matlab Universe
Computer Simulation Lab Electrical and Computer Engineering Department SUNY – New Paltz SUNY-New Paltz “Lecture 2”
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.
EGR 115 Introduction to Computing for Engineers Introduction to MATLAB Friday 29 August 2014 EGR 115 Introduction to Computing for Engineers.
Interduction to MATLAB Manal Alotaibi Mathematics department College of science King saud university.
ENG 1181 First-Year Engineering Program College of Engineering Engineering Education Innovation Center First-Year Engineering Program MAT - Introduction.
Fundamentals of Programming 20-ENFD-112 Sections 001 to 007 Instructor: Prof. Dieter Schmidt Lecture: Monday, Wednesday 3:00-3:50 Web page
Introduction to Matlab Patrice Koehl Department of Biological Sciences National University of Singapore
Spring 2016 Statics - TAM 210 & TAM 211 Discussion 1 - Intro to Matlab 1.
NET 222: COMMUNICATIONS AND NETWORKS FUNDAMENTALS ( NET 222: COMMUNICATIONS AND NETWORKS FUNDAMENTALS (PRACTICAL PART) Tutorial 2 : Matlab - Getting Started.
MATLAB (Matrix Algebra laboratory), distributed by The MathWorks, is a technical computing environment for high performance numeric computation and.
전자장 1 실험 - Matlab 사용법 - Photonic Systems Laboratory School of EE, Seoul National University Photonic Systems Lab School of EECS, S.N.U.
Introduction to MATLAB
Introduction to Matlab
Numeric, Cell and Structural Arrays One of the strenghts of MATLAB is the capabilty to handle collection of numbers called ARRAYS. MATLAB refers to scalars,
ECE 1304 Introduction to Electrical and Computer Engineering
Built-in MATLAB Functions Chapter 3
Introduction to Matlab
Lecture: MATLAB Chapter 1 Introduction
Computer programming Dr. Ivan A. Hashim.
Computer Simulation Lab
INTRODUCTION TO BASIC MATLAB
MATLAB DENC 2533 ECADD LAB 9.
Introduction To MATLAB
Quiz.
Warm-up: 1) Given sin = ½ and and csc  > 0 can you find the angle measure  definitively? Given cosx = − And sinx < 0 find the other five trigonometric.
Introduction to MATLAB
8.1: Graphical Solutions of Trig Functions
Experiment No. (1) - an introduction to MATLAB
MATLAB Introduction MATLAB can be thought of as a powerful graphing calculator but with a lot more buttons! It is also a programming language, commands.
Introduction To MATLAB
Computer Simulation Lab
MatLab Program Used to Calculate Interactive
Introduction to Matlab
Presentation transcript:

M A T L A B Eng. Osama Talaat Faculty of Engineering, Zagazig University, Egypt

Course Web Page  You can also navigate to it by: >> Teaching >> Matlab.  You shall find lecture materials and course resources.  Bookmark this page and keep visiting it regularly after each lecture to download its material. 2

About MATLAB Calculator Programming Language Toolboxes Simulation 3 Solving Equations Matrices Graphs Communication Control Systems Image Processing Simulink Console programs GUI

Lecture (1) Introduction Eng. Osama Talaat 4

MATLAB R2013a  Latest version – Download from the webpage. 5

MATLAB Setup 6 Open MATLAB

Arithmetic Operators – 2 10 × 2 7

Arithmetic Operators 10 2 / \ 8

Layout: Command Window  Clear command window using GUI  Clear command window using Commands >> clc 9

Layout: Command History  Clear command history 10

Layout Controllers 11

Variables 12 قيمة مباشرة ناتج عملية حسابية متغير من آخر

Variables 13 متغير من نفسه NB: Names (variables, files, …)  characters & Numbers, but starts with char.  No spaces.  No symbols except underscores (_).  Case sensitive (also commands).  Maximum length = 64 (increasing value). NB: display variable value.

Note: Simi-Colon (;) 14

Note: Multiplying by variable 15 No implicit multiplying sign

Layout: Workspace  Save variables … 16

Layout: Current Directory  Current Directory address bar.  Change Current Directory. 17

Layout: Workspace  Save variables:  Ctrl + S  GUI  Code >> save osama.mat  Clear workspace using GUI and Code. >> clear a >> clear b c >> clear  Load saved variables:  Ctrl + O  Code >> load osama.mat 18

Special Values: ans 19 ناتج آخر عملية حسابية لم يتم تخزينها

Special Values: PI, INF 20

Special Values: NaN 21 كمية غير محددة

Trigonometric Functions >> sin(x) >> cos(x) >> tan(x) >> sec(x) >> csc(x) >> cot(x) >> sind(x) >> cosd(x) >> tand(x) >> secd(x) >> cscd(x) >> cotd(x) 22 Radian by default Degrees

Inverse Trigonometric Functions 23 RadianDegreesMaths >>asin(x)>>asind(x) >>acos(x)>>acosd(x) >>atan(x)>>atand(x) >>asec(x)>>asecd(x) >>acsc(x)>>acscd(x) >>acot(x)>>acotd(x)

Hyperbolic Functions 24 >> sinh(x) >> cosh(x) >> tanh(x) >> sech(x) >> csch(x) >> coth(x) >> asinh(x) >> acosh(x) >> atanh(x) >> asech(x) >> acsch(x) >> acoth(x)

Other Mathematical Functions 25 >> log10(100) >> log2(1024) >> log(3) >>exp(3) >> abs(-12) >>sqrt(16) >>nthroot(27,3)

Test yourself 26

Other Mathematical Functions 27 إيجاد الأعداد الأولية حتى الرقم 10 اختبار هل العدد أولي أم لا

Other Mathematical Functions 28 تحليل العدد إلى مكوناته الأولية

Complex Numbers 29 i or j

Complex Numbers 30 Using i or j as variables implicit multiplying sign

Complex Numbers 31 القيمة المطلقة للعدد المركب زاوية العدد المركب المرافق

Complex Numbers 32 الجزء الحقيقي الجزء التخيلي اختبار وجود جزء تخيلي من عدمه

Complex Numbers 33

Approximation Functions 34 Normal Approximation

Approximation Functions 35 Round towards positive infinity

Approximation Functions 36 Round towards negative infinity

Approximation Functions 37 Round towards Zero

Approximation Functions 38 Round towards Zero

Help !!  Demos. 39

MATLAB Tips >> bench 40

GOOD LUCK To be continued in the next lecture … 41