Introduction to MATLAB

Slides:



Advertisements
Similar presentations
Introduction to SAS Programming Christina L. Ughrin Statistical Software Consulting Some notes pulled from SAS Programming I: Essentials Training.
Advertisements

Al-Amer An Introduction to MATLAB Dr. Samir Al-Amer Term 062.
Variables, Constants and Built-in Data Types Chapter 2: Java Fundamentals.
Introduction to MATLAB
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.
SAS Workshop Lecture 1 Lecturer: Annie N. Simpson, MSc.
IPC144 Introduction to Programming Using C Week 1 – Lesson 2
EXAMPLE 1 Writing Factors Members of the art club are learning to do calligraphy. Their first project is to make posters to display their new lettering.
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 – 6 Script Files - 1 Agenda Script files.
JAVA Tokens. Introduction A token is an individual element in a program. More than one token can appear in a single line separated by white spaces.
Computer Science 101 Introduction to Programming.
Chapter 4 Procedural Methods. Learning Java through Alice © Daly and Wrigley Objectives Identify classes, objects, and methods. Identify the difference.
Introduction to Engineering MATLAB – 2 Introduction to MATLAB - 2 Agenda Defining Variables MATLAB Windows.
1 A Guide to SQL Chapter 2. 2 Introduction Mid-1970s: SQL developed under the name SEQUEL at IBM by San Jose research facilities to be the data manipulation.
ROUND 1 Name a method associated with class String 1.) 15 compareTo() 26 indexOf() 34 length() 2.) 3.) 4.) 3 toUpper() 7 substring() 11 charAt() 5.)
CSCI 130 Chapter 3. Variables & Names Variable Declarations: –reserve a storage location in memory –identify the name of the variable –identify the type.
Programming Fundamental Slides1 Data Types, Identifiers, and Expressions Topics to cover here: Data types Variables and Identifiers Arithmetic and Logical.
BASICS CONCEPTS OF ‘C’.  C Character Set C Character Set  Tokens in C Tokens in C  Constants Constants  Variables Variables  Global Variables Global.
Introduction to MATLAB ENGR 1181 MATLAB 1. Opening MATLAB  Students, please open MATLAB now.  CLICK on the shortcut icon → Alternatively, select… start/All.
1 Week 1: Variables, assignment, expressions READING: 1.2 – 1.4.
VARIABLES, CONSTANTS, OPERATORS ANS EXPRESSION
CONSTANTS Constants are also known as literals in C. Constants are quantities whose values do not change during program execution. There are two types.
Identifiers.
Getting Started with MATLAB (part 3) 1. Algebra, 2. Trig 3. The keyword ans 4. Clean up and suppress output: finalizing the software’s presentation 1.
1 Lecture 1 Post-Graduate Students Advanced Programming (Introduction to MATLAB) Code: ENG 505 Dr. Basheer M. Nasef Computers & Systems Dept.
© 2011 Pearson Education, publishing as Addison-Wesley Tuesday After answering the questions after logging in, open BlueJ and the Formula class.
ENG 1181 First-Year Engineering Program College of Engineering Engineering Education Innovation Center First-Year Engineering Program MAT - Introduction.
Digital Image Processing Lecture 6: Introduction to M- function Programming.
Values, Types, and Variables. Values Data Information Numbers Text Pretty much anything.
Variables. Some Rules of Variable Naming Convention : Variable names are case-sensitive. A variable’s name can be any legal identifier. It can contain.
Introduction to Programming Python Lab 3: Arithmetic 22 January PythonLab3 lecture slides.ppt Ping Brennan
C BASICS QUIZ (DATA TYPES & OPERATORS). C language has been developed by (1) Ken Thompson (2) Dennis Ritchie (3) Peter Norton (4) Martin Richards.
Primitive Data Types 1 In PowerPoint, point at the speaker icon, then click the "Play" button.
Matlab Tutorial Iman Moazzen First Session – September 11, 2013.
Chapter 3 Using Variables, Constants, Formatting Mrs. UlshaferSept
2.1 The Part of a C++ Program. The Parts of a C++ Program // sample C++ program #include using namespace std; int main() { cout
Basic operations in Matlab EE 201.  Achieve Comprehension LOL of Matlab basic operations. Class Learning Objectives 2.
Fundamentals 2.
3 A Guide to MySQL.
Engr 6: Matlab Programming
C++ First Steps.
Introduction to MATLAB
Programming in R Intro, data and programming structures
BASIC ELEMENTS OF A COMPUTER PROGRAM
Data Types, Identifiers, and Expressions
Revision Lecture
Introduction to Matlab
C-Character Set Dept. of Computer Applications Prof. Harpreet Kaur
' C ' PROGRAMMING SRM-MCA.
INTRODUCTION TO BASIC MATLAB
MATLAB DENC 2533 ECADD LAB 9.
Chapter 4 Procedural Methods.
IPC144 Introduction to Programming Using C Week 1 – Lesson 2
Data Types, Identifiers, and Expressions
2.1 Parts of a C++ Program.
Unit-1 Introduction to Java
Fundamentals 2.
Chapter 2: Java Fundamentals
Chapter 7 Procedural Methods.
CHAPTER FOUR VARIABLES AND CONSTANTS
Chapter 2: Java Fundamentals
Chapter 2: Introduction to C++.
Experiment No. (1) - an introduction to MATLAB
Understanding Variables
Use a variable to store a value that you want to use at a later time
C Programming Language
Basic Programming Lab C.
Introduction to Matlab
Presentation transcript:

Introduction to MATLAB ENGR 1181 MATLAB 2 - Activity

Naming Variables in MATLAB What is wrong with the following variable names? 1Name My Name My-Name

Naming Variables in MATLAB What is wrong with the following variable names? 1Name Answer: starts with numeral My Name Answer: no spaces allowed My-Name Answer: no special characters allowed Rules for naming variables in MATLAB: 1. Variable names cannot exceed 63 characters 2. Names must begin with a letter 3. May contain letters, digits, and the underscore character 4. No spaces are allowed 5. MATLAB is case sensitive, it distinguishes between uppercase and lowercase letters 6. Avoid naming variables with currently defined MATLAB functions Ex: exp, sin, cos, sqrt, length, mean, max, min etc.

Questions: How does the semicolon at the end of a statement affect what is displayed? Is MATLAB case sensitive when it comes to variable names? What’s the difference between typing statements in the Command Window versus the Editor Window?