Contents. MATLAB Tutorial. Contents. General Functions. What is MATLAB? Calculations at the Command Line
|
|
|
- Colleen Bryan
- 9 years ago
- Views:
Transcription
1 Contents MATLAB Tutorial Based on Matlab Tutorial What Matlab? Matrices Numerical Arrays String Arrays Elementary Math Logical Operators Math Functions Importing and Exporting Data 2 Contents Graphics Fundamentals 2D plotting Subplots 3D plotting Editing and Debugging M-files Script and Function Files Basic Parts of an M-file Flow Control Statements M-file Programming Data Types Continued What MATLAB? high-performance software Computation Vualization Easy-to-use environment. high-level language Data types Functions Control flow statements Input/output Graphics Object-oriented programming capabilities 3 5 Calculations at the Command Line General Functions 9 MATLAB as a calculator Assigning Variables» -5/( )^2 ans» a 2; ans 2; -.488» b 5; ;» (3+4i)*(3-4i)» a^b a^b ans ans ans ans » cos(pi/2)» x 5/2*pi; 5/2*pi; ans ans» y sin(x) 6.23e-7 sin(x) y» exp(acos(.3)) ans ans 3.547» z asin(y) asin(y) z A Note about Workspace: Numbers stored in double-precion floating point format Semicolon suppresses screen output Results assigned to ans if name not specified () parentheses for function inputs whos: Lt current variables clear: Clear variables and functions from memory cd: Change current working directory ls: Lt files in directory
2 Getting help help command lookfor command Printable Documents Matlabroot\help\pdf_doc\ (>>help) (>>lookfor) Matrices Entering and Generating Matrices Subscripts Scalar Expansion Concatenation Deleting Rows and Columns Array Extraction Matrix and Array Multiplication 2 Entering Numeric Arrays The Matrix in MATLAB 3 Row separator semicolon (;) Column separator space / comma (,)» a[ a[ 2;3 2;3 4] 4] a Use square 2 brackets [ ] 3 4» b[-2.8, b[-2.8, sqrt(-7), sqrt(-7), (3+5+6)*3/4] (3+5+6)*3/4] b i i.5.5» b(2,5) b(2,5) b i i Any MATLAB expression can be entered as a matrix element Matrices must be rectangular. (Set undefined elements to zero) 4 A 2 Rows (m) Columns (n) A (2,4) A (7) Rectangular Matrix: Scalar: -by- array Vector: m-by- array -by-n array Matrix: m-by-n array Entering Numeric Arrays Numerical Array Concatenation 5 Scalar expansion Creating sequences: colon operator (:) Utility functions for creating matrices.» w[ w[ 2;3 2;3 4] 4] + 5 w » x :5 :5 x » y 2:-.5: 2:-.5: y » z rand(2,4) rand(2,4) z Use [ ] to combine exting arrays as matrix elements Row separator: semicolon (;) Column separator: space / comma (,)» a[ a[ 2;3 2;3 4] 4] a Use square 2 brackets [ ] 3 4» cat_a[a, cat_a[a, 2*a; 2*a; 3*a, 3*a, 4*a; 4*a; 5*a, 5*a, 6*a] 6*a] cat_a cat_a *a Note: The resulting matrix must be rectangular
3 Deleting Rows and Columns Array Subscripting / Indexing» A[ A[ 5 9;4 9; ; 2.5;.. 3i+] 3i+] A i.+3.i» A(:,2)[] A(:,2)[] A i 3.i» A(2,2)[] A(2,2)[]?????? Indexed Indexed empty empty matrix matrix assignment assignment not not allowed. allowed. A A(3,) A(3) A(:5,5) A(:,) A(:,5) A(:,) A(2:25) A(2:) A(4:5,2:3) A([9 4; 5]) Matrix Multiplication» a [ [ 2 3 4; 4; ]; 8];» b ones(4,3); ones(4,3);» c a*b a*b c Array Multiplication [2x4]*[4x3] [2x4] [4x3] [2x3] a(2nd row).b(3rd column)» a [ [ 2 3 4; 4; ]; 8];» b [:4; [:4; :4]; :4];» c a.*b a.*b c c(2,4) a(2,4)*b(2,4) 2 Matrix Manipulation Functions zeros: Create an array of all zeros ones: Create an array of all ones eye: Identity Matrix rand: Uniformly dtributed random numbers diag: Diagonal matrices and diagonal of a matrix size: Return array dimensions repmat: Replicate and tile a matrix Matrix Manipulation Functions Elementary Math det: Matrix determinant inv: Matrix inverse eig: Evaluate eigenvalues and eigenvectors rank: Rank of matrix Logical Operators Math Functions Polynomial and Interpolation 2 25
4 Logical Operations Elementary Math Function 26 equal to > greater than < less than > Greater or equal < less or equal ~ not & and or finite(), etc.... all(), any() find» Mass Mass [-2 [-2 NaN NaN Inf Inf 3]; 3];» each_pos each_pos Mass> Mass> each_pos each_pos» all(mass>) all(mass>)» any(mass>) any(mass>)» pos_fin pos_fin (Mass>)&(finite(Mass)) (Mass>)&(finite(Mass)) pos_fin pos_fin Note: TRUE FALSE 27 abs, sign: Absolute value and Signum Function sin, cos, asin, acos : Triangular functions exp, log, log: Exponential, Natural and Common (base ) logarithm ceil, floor: Round toward infinities fix: Round toward zero Elementary Math Function round: Round to the nearest integer sqrt: Square root function real, imag: Real and Image part of complex rem: Remainder after divion Elementary Math Function max, min: Maximum and Minimum of arrays mean, median: Average and Median of arrays std, var: Standard deviation and variance sort: Sort elements in ascing order sum, prod: Summation & Product of Elements 28 Importing and Exporting Data Using the Import Wizard Using Save and Load command Input/Output for Text File Read formatted data, reusing the format string N times.»[a An]textread(filename,format,N) save save fname fname save save fname fname x y z save save fname fname -ascii save save fname fname -mat -mat load load fname fname load load fname fname x y z load load fname fname -ascii load load fname fname -mat -mat Import and Exporting Numeric Data with General ASCII delimited files» M dlmread(filename,delimiter,range) 32 33
5 Graphics Fundamentals Graphics Basic Plotting plot, title, xlabel, grid, leg, hold, ax Editing Plots Property Editor Mesh and Surface Plots meshgrid, mesh, surf, colorbar, patch, hidden Handle Graphics D Plotting Sample Plot Syntax: Title plot(x, y, y, 'clm', x2, x2, y2, y2, 'clm2',...)...) Example: 37 x[:.:2*pi]; ysin(x); zcos(x); plot(x,y,x,z,'linewidth',2) title('sample Plot','fontsize',4); xlabel('x values','fontsize',4); ylabel('y values','fontsize',4); leg('y data','z data') grid grid on on 38 Ylabel Leg Xlabel Grid Subplots Syntax: subplot(rows,cols,index)»subplot(2,2,);»»subplot(2,2,2)» Surface Plot Example x :.:2; :.:2; y :.:2; :.:2; [xx, [xx, yy] yy] meshgrid(x,y); meshgrid(x,y); zzsin(xx.^2+yy.^2); surf(xx,yy,zz) surf(xx,yy,zz) xlabel('x xlabel('x axes') axes') ylabel('y ylabel('y axes') axes')»subplot(2,2,3)»......»subplot(2,2,4)»
6 3-D Surface Plotting contourf-colorbar-plot3-waterfall-contour3-mesh-surf Specialized Plotting Routines bar-bar3h-ht-area-pie3-rose 4 42 Editing and Debugging M-Files Debugging 43 What an M-File? The Editor/Debugger Search Path Debugging M-Files Types of Errors (Syntax Error and Runtime Error) Using keyboard and ; statement Setting Breakpoints Stepping Through Continue, Go Until Cursor, Step, Step In, Step Out Examining Values Selecting the Workspace Viewing Datatips in the Editor/Debugger Evaluating a Selection 44 Select Workspace Set Auto- Breakpoints tips Script and Function Files Programming and Dubugging Script Files Work as though you typed commands into MATLAB prompt Variable are stored in MATLAB workspace Function Files Let you make your own MATLAB Functions All variables within a function are local All information must be passed to functions as parameters Subfunctions are supported
7 Basic Parts of a Function M-File Flow Control Statements 47 Output Arguments Function Name Input Arguments Online Help function y mean (x) % MEAN Average or mean value. % For vectors, MEAN(x) returns the mean value. % For matrices, MEAN(x) a row vector % containing the mean value of each column. [m,n] size(x); if m Function Code m n; y sum(x)/m; 48 if Statement if if ((attance ((attance > >.9).9) & (grade_average (grade_average > > 6)) 6)) pass pass ; ; ; ; while Loops eps eps ; ; while while (+eps) (+eps) > eps eps eps/2; eps/2; eps eps eps*2 eps*2 49 Flow Control Statements for Loop a a zeros(k,k) zeros(k,k) % % Preallocate Preallocate matrix matrix for for m m :k :k for for n n :k :k a(m,n) a(m,n) /(m+n /(m+n -); -); switch Statement method method 'Bilinear'; 'Bilinear'; switch switch lower(method) lower(method) case case {'linear','bilinear'} {'linear','bilinear'} dp('method dp('method linear') linear') case case 'cubic' 'cubic' dp('method dp('method cubic') cubic') otherwe otherwe dp('unknown dp('unknown method.') method.') Method Method linear linear 5 M-file Programming Features SubFunctions Varying number of input/output arguments Local and Global Variables Obtaining User Input Prompting for Keyboard Input Pausing During Execution Errors and Warnings Dplaying error and warning Messages Shell Escape Functions (! Operator) Optimizing MATLAB Code Vectorizing loops Preallocating Arrays Function M-file Data Types function function r ourrank(x,tol) ourrank(x,tol) % rank rank of of a matrix matrix s svd(x); svd(x); if if (nargin (nargin ) ) tol tol max(size(x)) max(size(x)) * s()* s()* eps; eps; r sum(s sum(s > tol); tol); Multiple Input Arguments use ( )»rourrank(rand(5),.); 5 function function [mean,stdev] [mean,stdev] ourstat(x) ourstat(x) [m,n] [m,n] size(x); Multiple Output size(x); if if m Arguments, use [ ] m n; n;»[m std]ourstat(:9); mean mean sum(x)/m; sum(x)/m; stdev stdev sqrt(sum(x.^2)/m sqrt(sum(x.^2)/m mean.^2); mean.^2); 52 Numeric Arrays Multidimensional Arrays Structures and Cell Arrays
8 Multidimensional Arrays Structures 53 The first references array dimension, the row. The second references dimension 2, the column. The third references dimension 3, The page Page Page N» A pascal(4);» A(:,:,2) A(:,:,2) magic(4) magic(4) A(:,:,) A(:,:,) A(:,:,2) A(:,:,2) » A(:,:,9) A(:,:,9) diag(ones(,4)); 54 Arrays with named data containers called fields.» patient.name'john Doe'; Doe';» patient.billing 27.;» patient.test [79 [ ; 73; ; ]; 25]; Also, Build structure arrays using the struct function. Array of structures» patient(2).name'katty Thomson';» Patient(2).billing.;» Patient(2).test [69 [ ; 33; ; ]; 25]; Cell Arrays Array for which the elements are cells and can hold other MATLAB arrays of different types.» A(,) {[ {[ 4 3; 3; 5 8; 8; 7 2 9]}; 9]};» A(,2) {'Anne Smith'};» A(2,) {3+7i};» A(2,2) {-pi:pi/:pi}; Next Tutorial Session Image Processing Toolbox Movie Making Problem Set 55 Using braces {} to point to elements of cell array Using celldp function to dplay cell array Getting more help Contact You can find more help and FAQ about mathworks products on th page. Getting started with Matlab tarted/index.html Matlab Primer Questions?? 69 7
Introduction to Matlab
Introduction to Matlab Social Science Research Lab American University, Washington, D.C. Web. www.american.edu/provost/ctrl/pclabs.cfm Tel. x3862 Email. [email protected] Course Objective This course provides
Financial Econometrics MFE MATLAB Introduction. Kevin Sheppard University of Oxford
Financial Econometrics MFE MATLAB Introduction Kevin Sheppard University of Oxford October 21, 2013 2007-2013 Kevin Sheppard 2 Contents Introduction i 1 Getting Started 1 2 Basic Input and Operators 5
MATLAB Functions. function [Out_1,Out_2,,Out_N] = function_name(in_1,in_2,,in_m)
MATLAB Functions What is a MATLAB function? A MATLAB function is a MATLAB program that performs a sequence of operations specified in a text file (called an m-file because it must be saved with a file
MATLAB Basics MATLAB numbers and numeric formats
MATLAB Basics MATLAB numbers and numeric formats All numerical variables are stored in MATLAB in double precision floating-point form. (In fact it is possible to force some variables to be of other types
Introduction. Chapter 1
Chapter 1 Introduction MATLAB (Matrix laboratory) is an interactive software system for numerical computations and graphics. As the name suggests, MATLAB is especially designed for matrix computations:
u = [ 2 4 5] has one row with three components (a 3 v = [2 4 5] has three rows separated by semicolons (a 3 w = 2:5 generates the row vector w = [ 2 3
MATLAB Tutorial You need a small numb e r of basic commands to start using MATLAB. This short tutorial describes those fundamental commands. You need to create vectors and matrices, to change them, and
Basic Concepts in Matlab
Basic Concepts in Matlab Michael G. Kay Fitts Dept. of Industrial and Systems Engineering North Carolina State University Raleigh, NC 769-7906, USA [email protected] September 00 Contents. The Matlab Environment.
Introductory Course to Matlab with Financial Case Studies
University of Cyprus Public Business Administration Department Introductory Course to Matlab with Financial Case Studies Prepared by: Panayiotis Andreou PhD Candidate PBA UCY Lefkosia, September 003 Table
CD-ROM Appendix E: Matlab
CD-ROM Appendix E: Matlab Susan A. Fugett Matlab version 7 or 6.5 is a very powerful tool useful for many kinds of mathematical tasks. For the purposes of this text, however, Matlab 7 or 6.5 will be used
Appendix: Tutorial Introduction to MATLAB
Resampling Stats in MATLAB 1 This document is an excerpt from Resampling Stats in MATLAB Daniel T. Kaplan Copyright (c) 1999 by Daniel T. Kaplan, All Rights Reserved This document differs from the published
Introduction to MATLAB (Basics) Reference from: Azernikov Sergei [email protected]
Introduction to MATLAB (Basics) Reference from: Azernikov Sergei [email protected] MATLAB Basics Where to get help? 1) In MATLAB s prompt type: help, lookfor,helpwin, helpdesk, demos. 2) On the
MATLAB LECTURE NOTES. Dr. ADİL YÜCEL. Istanbul Technical University Department of Mechanical Engineering
MATLAB LECTURE NOTES Dr. ADİL YÜCEL Istanbul Technical University Department of Mechanical Engineering MATLAB LECTURE NOTES Student Name Student ID Dr. ADİL YÜCEL Istanbul Technical University Department
Engineering Problem Solving and Excel. EGN 1006 Introduction to Engineering
Engineering Problem Solving and Excel EGN 1006 Introduction to Engineering Mathematical Solution Procedures Commonly Used in Engineering Analysis Data Analysis Techniques (Statistics) Curve Fitting techniques
2+2 Just type and press enter and the answer comes up ans = 4
Demonstration Red text = commands entered in the command window Black text = Matlab responses Blue text = comments 2+2 Just type and press enter and the answer comes up 4 sin(4)^2.5728 The elementary functions
How long is the vector? >> length(x) >> d=size(x) % What are the entries in the matrix d?
MATLAB : A TUTORIAL 1. Creating vectors..................................... 2 2. Evaluating functions y = f(x), manipulating vectors. 4 3. Plotting............................................ 5 4. Miscellaneous
How To Use Matlab
INTRODUCTION TO MATLAB FOR ENGINEERING STUDENTS David Houcque Northwestern University (version 1.2, August 2005) Contents 1 Tutorial lessons 1 1 1.1 Introduction.................................... 1 1.2
MATLAB Tutorial. Chapter 6. Writing and calling functions
MATLAB Tutorial Chapter 6. Writing and calling functions In this chapter we discuss how to structure a program with multiple source code files. First, an explanation of how code files work in MATLAB is
PGR Computing Programming Skills
PGR Computing Programming Skills Dr. I. Hawke 2008 1 Introduction The purpose of computing is to do something faster, more efficiently and more reliably than you could as a human do it. One obvious point
(!' ) "' # "*# "!(!' +,
MATLAB is a numeric computation software for engineering and scientific calculations. The name MATLAB stands for MATRIX LABORATORY. MATLAB is primarily a tool for matrix computations. It was developed
Beginner s Matlab Tutorial
Christopher Lum [email protected] Introduction Beginner s Matlab Tutorial This document is designed to act as a tutorial for an individual who has had no prior experience with Matlab. For any questions
MATLAB DFS. Interface Library. User Guide
MATLAB DFS Interface Library User Guide DHI Water Environment Health Agern Allé 5 DK-2970 Hørsholm Denmark Tel: +45 4516 9200 Fax: +45 4516 9292 E-mail: [email protected] Web: www.dhigroup.com 2007-03-07/MATLABDFS_INTERFACELIBRARY_USERGUIDE.DOC/JGR/HKH/2007Manuals/lsm
AMATH 352 Lecture 3 MATLAB Tutorial Starting MATLAB Entering Variables
AMATH 352 Lecture 3 MATLAB Tutorial MATLAB (short for MATrix LABoratory) is a very useful piece of software for numerical analysis. It provides an environment for computation and the visualization. Learning
Part VI. Scientific Computing in Python
Part VI Scientific Computing in Python Compact Course @ GRS, June 03-07, 2013 80 More on Maths Module math Constants pi and e Functions that operate on int and float All return values float ceil (x) floor
Beginning Matlab Exercises
Beginning Matlab Exercises R. J. Braun Department of Mathematical Sciences University of Delaware 1 Introduction This collection of exercises is inted to help you start learning Matlab. Matlab is a huge
Simple Programming in MATLAB. Plotting a graph using MATLAB involves three steps:
Simple Programming in MATLAB Plotting Graphs: We will plot the graph of the function y = f(x) = e 1.5x sin(8πx), 0 x 1 Plotting a graph using MATLAB involves three steps: Create points 0 = x 1 < x 2
MATLAB Programming. Problem 1: Sequential
Division of Engineering Fundamentals, Copyright 1999 by J.C. Malzahn Kampe 1 / 21 MATLAB Programming When we use the phrase computer solution, it should be understood that a computer will only follow directions;
Introduction to Matlab: Application to Electrical Engineering
Introduction to Matlab: Application to Electrical Engineering Houssem Rafik El Hana Bouchekara Umm El Qura University (version 1, Februray 2011) 1 Contents 1 CHAPTER 1... 7 1.1 TUTORIAL LESSONS 1... 7
SOME EXCEL FORMULAS AND FUNCTIONS
SOME EXCEL FORMULAS AND FUNCTIONS About calculation operators Operators specify the type of calculation that you want to perform on the elements of a formula. Microsoft Excel includes four different types
Signal Processing First Lab 01: Introduction to MATLAB. 3. Learn a little about advanced programming techniques for MATLAB, i.e., vectorization.
Signal Processing First Lab 01: Introduction to MATLAB Pre-Lab and Warm-Up: You should read at least the Pre-Lab and Warm-up sections of this lab assignment and go over all exercises in the Pre-Lab section
Analysis of System Performance IN2072 Chapter M Matlab Tutorial
Chair for Network Architectures and Services Prof. Carle Department of Computer Science TU München Analysis of System Performance IN2072 Chapter M Matlab Tutorial Dr. Alexander Klein Prof. Dr.-Ing. Georg
Name: Class: Date: 9. The compiler ignores all comments they are there strictly for the convenience of anyone reading the program.
Name: Class: Date: Exam #1 - Prep True/False Indicate whether the statement is true or false. 1. Programming is the process of writing a computer program in a language that the computer can respond to
FIRST STEPS WITH SCILAB
powered by FIRST STEPS WITH SCILAB The purpose of this tutorial is to get started using Scilab, by discovering the environment, the main features and some useful commands. Level This work is licensed under
5: Magnitude 6: Convert to Polar 7: Convert to Rectangular
TI-NSPIRE CALCULATOR MENUS 1: Tools > 1: Define 2: Recall Definition --------------- 3: Delete Variable 4: Clear a-z 5: Clear History --------------- 6: Insert Comment 2: Number > 1: Convert to Decimal
Exercise 0. Although Python(x,y) comes already with a great variety of scientic Python packages, we might have to install additional dependencies:
Exercise 0 Deadline: None Computer Setup Windows Download Python(x,y) via http://code.google.com/p/pythonxy/wiki/downloads and install it. Make sure that before installation the installer does not complain
Tutorial Program. 1. Basics
1. Basics Working environment Dealing with matrices Useful functions Logical operators Saving and loading Data management Exercises 2. Programming Basics graphics settings - ex Functions & scripts Vectorization
Simulation Tools. Python for MATLAB Users I. Claus Führer. Automn 2009. Claus Führer Simulation Tools Automn 2009 1 / 65
Simulation Tools Python for MATLAB Users I Claus Führer Automn 2009 Claus Führer Simulation Tools Automn 2009 1 / 65 1 Preface 2 Python vs Other Languages 3 Examples and Demo 4 Python Basics Basic Operations
MAS 500 Intelligence Tips and Tricks Booklet Vol. 1
MAS 500 Intelligence Tips and Tricks Booklet Vol. 1 1 Contents Accessing the Sage MAS Intelligence Reports... 3 Copying, Pasting and Renaming Reports... 4 To create a new report from an existing report...
Linear Algebra and TI 89
Linear Algebra and TI 89 Abdul Hassen and Jay Schiffman This short manual is a quick guide to the use of TI89 for Linear Algebra. We do this in two sections. In the first section, we will go over the editing
A few useful MATLAB functions
A few useful MATLAB functions Renato Feres - Math 350 Fall 2012 1 Uniform random numbers The Matlab command rand is based on a popular deterministic algorithm called multiplicative congruential method.
MATLAB Primer. R2015b
MATLAB Primer R25b How to Contact MathWorks Latest news: www.mathworks.com Sales and services: www.mathworks.com/sales_and_services User community: www.mathworks.com/matlabcentral Technical support: www.mathworks.com/support/contact_us
Programming Exercise 3: Multi-class Classification and Neural Networks
Programming Exercise 3: Multi-class Classification and Neural Networks Machine Learning November 4, 2011 Introduction In this exercise, you will implement one-vs-all logistic regression and neural networks
G563 Quantitative Paleontology. SQL databases. An introduction. Department of Geological Sciences Indiana University. (c) 2012, P.
SQL databases An introduction AMP: Apache, mysql, PHP This installations installs the Apache webserver, the PHP scripting language, and the mysql database on your computer: Apache: runs in the background
Programming in MATLAB
University of Southern Denmark An introductory set of notes Programming in MATLAB Authors: Nicky C. Mattsson Christian D. Jørgensen Web pages: imada.sdu.dk/ nmatt11 imada.sdu.dk/ chjoe11 November 10, 2014
MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS. + + x 2. x n. a 11 a 12 a 1n b 1 a 21 a 22 a 2n b 2 a 31 a 32 a 3n b 3. a m1 a m2 a mn b m
MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS 1. SYSTEMS OF EQUATIONS AND MATRICES 1.1. Representation of a linear system. The general system of m equations in n unknowns can be written a 11 x 1 + a 12 x 2 +
Notes on Determinant
ENGG2012B Advanced Engineering Mathematics Notes on Determinant Lecturer: Kenneth Shum Lecture 9-18/02/2013 The determinant of a system of linear equations determines whether the solution is unique, without
Linear Algebra Review. Vectors
Linear Algebra Review By Tim K. Marks UCSD Borrows heavily from: Jana Kosecka [email protected] http://cs.gmu.edu/~kosecka/cs682.html Virginia de Sa Cogsci 8F Linear Algebra review UCSD Vectors The length
Quick Tour of Mathcad and Examples
Fall 6 Quick Tour of Mathcad and Examples Mathcad provides a unique and powerful way to work with equations, numbers, tests and graphs. Features Arithmetic Functions Plot functions Define you own variables
MATH 423 Linear Algebra II Lecture 38: Generalized eigenvectors. Jordan canonical form (continued).
MATH 423 Linear Algebra II Lecture 38: Generalized eigenvectors Jordan canonical form (continued) Jordan canonical form A Jordan block is a square matrix of the form λ 1 0 0 0 0 λ 1 0 0 0 0 λ 0 0 J = 0
Eigenvalues, Eigenvectors, Matrix Factoring, and Principal Components
Eigenvalues, Eigenvectors, Matrix Factoring, and Principal Components The eigenvalues and eigenvectors of a square matrix play a key role in some important operations in statistics. In particular, they
Data Tool Platform SQL Development Tools
Data Tool Platform SQL Development Tools ekapner Contents Setting SQL Development Preferences...5 Execution Plan View Options Preferences...5 General Preferences...5 Label Decorations Preferences...6
Simply Accounting Intelligence Tips and Tricks Booklet Vol. 1
Simply Accounting Intelligence Tips and Tricks Booklet Vol. 1 1 Contents Accessing the SAI reports... 3 Running, Copying and Pasting reports... 4 Creating and linking a report... 5 Auto e-mailing reports...
Computational Mathematics with Python
Boolean Arrays Classes Computational Mathematics with Python Basics Olivier Verdier and Claus Führer 2009-03-24 Olivier Verdier and Claus Führer Computational Mathematics with Python 2009-03-24 1 / 40
PTC Mathcad Prime 3.0 Keyboard Shortcuts
PTC Mathcad Prime 3.0 Shortcuts Swedish s Regions Inserting Regions Operator/Command Description Shortcut Swedish Area Inserts a collapsible area you can collapse or expand to toggle the display of your
MATLAB MANUAL AND INTRODUCTORY TUTORIALS
MATLAB MANUAL AND INTRODUCTORY TUTORIALS Ivan Graham, with some revisions by Nick Britton, Mathematical Sciences, University of Bath February 9, 2005 This manual provides an introduction to MATLAB with
MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS
MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS Systems of Equations and Matrices Representation of a linear system The general system of m equations in n unknowns can be written a x + a 2 x 2 + + a n x n b a
MatLab Basics. Now, press return to see what Matlab has stored as your variable x. You should see:
MatLab Basics MatLab was designed as a Matrix Laboratory, so all operations are assumed to be done on matrices unless you specifically state otherwise. (In this context, numbers (scalars) are simply regarded
(!' ) "' # "*# "!(!' +,
Normally, when single line commands are entered, MATLAB processes the commands immediately and displays the results. MATLAB is also capable of processing a sequence of commands that are stored in files
AIMMS Function Reference - Arithmetic Functions
AIMMS Function Reference - Arithmetic Functions This file contains only one chapter of the book. For a free download of the complete book in pdf format, please visit www.aimms.com Aimms 3.13 Part I Function
Introduction to Numerical Math and Matlab Programming
Introduction to Numerical Math and Matlab Programming Todd Young and Martin Mohlenkamp Department of Mathematics Ohio University Athens, OH 45701 [email protected] c 2009 - Todd Young and Martin Mohlenkamp.
13 MATH FACTS 101. 2 a = 1. 7. The elements of a vector have a graphical interpretation, which is particularly easy to see in two or three dimensions.
3 MATH FACTS 0 3 MATH FACTS 3. Vectors 3.. Definition We use the overhead arrow to denote a column vector, i.e., a linear segment with a direction. For example, in three-space, we write a vector in terms
Computational Mathematics with Python
Computational Mathematics with Python Basics Claus Führer, Jan Erik Solem, Olivier Verdier Spring 2010 Claus Führer, Jan Erik Solem, Olivier Verdier Computational Mathematics with Python Spring 2010 1
Summary: Transformations. Lecture 14 Parameter Estimation Readings T&V Sec 5.1-5.3. Parameter Estimation: Fitting Geometric Models
Summary: Transformations Lecture 14 Parameter Estimation eadings T&V Sec 5.1-5.3 Euclidean similarity affine projective Parameter Estimation We will talk about estimating parameters of 1) Geometric models
Computational Mathematics with Python
Numerical Analysis, Lund University, 2011 1 Computational Mathematics with Python Chapter 1: Basics Numerical Analysis, Lund University Claus Führer, Jan Erik Solem, Olivier Verdier, Tony Stillfjord Spring
Chapter 5 Functions. Introducing Functions
Chapter 5 Functions 1 Introducing Functions A function is a collection of statements that are grouped together to perform an operation Define a function Invoke a funciton return value type method name
MATLAB Primer. R2015a
MATLAB Primer R25a How to Contact MathWorks Latest news: www.mathworks.com Sales and services: www.mathworks.com/sales_and_services User community: www.mathworks.com/matlabcentral Technical support: www.mathworks.com/support/contact_us
INTRODUCTION TO EXCEL
INTRODUCTION TO EXCEL 1 INTRODUCTION Anyone who has used a computer for more than just playing games will be aware of spreadsheets A spreadsheet is a versatile computer program (package) that enables you
Introduction to MATLAB
Introduction to MATLAB MathWorks Logo Markus Kuhn Computer Laboratory, University of Cambridge https://www.cl.cam.ac.uk/teaching/1516/tex+matlab/ Michaelmas 215 Part II 1 What is MATLAB high-level language
Part #3. AE0B17MTB Matlab. Pavel Valtr [email protected] Miloslav Čapek, Filip Kozák, Viktor Adler
AE0B17MTB Matlab Part #3 Pavel Valtr [email protected] Miloslav Čapek, Filip Kozák, Viktor Adler Department of Electromagnetic Field B2-626, Prague Learning how to Indexing ResTable.data1(... PsoData.cond{crt}(spr,2),...
Review Jeopardy. Blue vs. Orange. Review Jeopardy
Review Jeopardy Blue vs. Orange Review Jeopardy Jeopardy Round Lectures 0-3 Jeopardy Round $200 How could I measure how far apart (i.e. how different) two observations, y 1 and y 2, are from each other?
PLOTTING IN SCILAB. www.openeering.com
powered by PLOTTING IN SCILAB In this Scilab tutorial we make a collection of the most important plots arising in scientific and engineering applications and we show how straightforward it is to create
Similarity and Diagonalization. Similar Matrices
MATH022 Linear Algebra Brief lecture notes 48 Similarity and Diagonalization Similar Matrices Let A and B be n n matrices. We say that A is similar to B if there is an invertible n n matrix P such that
Using Casio Graphics Calculators
Using Casio Graphics Calculators (Some of this document is based on papers prepared by Donald Stover in January 2004.) This document summarizes calculation and programming operations with many contemporary
MS-EXCEL: ANALYSIS OF EXPERIMENTAL DATA
MS-EXCEL: ANALYSIS OF EXPERIMENTAL DATA Rajender Parsad and Shashi Dahiya I.A.S.R.I., Library Avenue, New Delhi-110 012 The inbuilt functions and procedures of MS-EXCEL can be utilized for the analysis
COMSOL. Script USER S GUIDE V ERSION 1.1
COMSOL Script USER S GUIDE V ERSION 1.1 How to contact COMSOL: Benelux COMSOL BV Röntgenlaan 19 2719 DX Zoetermeer The Netherlands Phone: +31 (0) 79 363 4230 Fax: +31 (0) 79 361 4212 [email protected] www.femlab.nl
Department of Chemical Engineering ChE-101: Approaches to Chemical Engineering Problem Solving MATLAB Tutorial VI
Department of Chemical Engineering ChE-101: Approaches to Chemical Engineering Problem Solving MATLAB Tutorial VI Solving a System of Linear Algebraic Equations (last updated 5/19/05 by GGB) Objectives:
Vector and Matrix Norms
Chapter 1 Vector and Matrix Norms 11 Vector Spaces Let F be a field (such as the real numbers, R, or complex numbers, C) with elements called scalars A Vector Space, V, over the field F is a non-empty
R: A self-learn tutorial
R: A self-learn tutorial 1 Introduction R is a software language for carrying out complicated (and simple) statistical analyses. It includes routines for data summary and exploration, graphical presentation
Mathematica Tutorial
Mathematica Tutorial To accompany Partial Differential Equations: Analytical and Numerical Methods, 2nd edition by Mark S. Gockenbach (SIAM, 200) Introduction In this introduction, I will explain the organization
Tips and Tricks SAGE ACCPAC INTELLIGENCE
Tips and Tricks SAGE ACCPAC INTELLIGENCE 1 Table of Contents Auto e-mailing reports... 4 Automatically Running Macros... 7 Creating new Macros from Excel... 8 Compact Metadata Functionality... 9 Copying,
15.062 Data Mining: Algorithms and Applications Matrix Math Review
.6 Data Mining: Algorithms and Applications Matrix Math Review The purpose of this document is to give a brief review of selected linear algebra concepts that will be useful for the course and to develop
Orthogonal Diagonalization of Symmetric Matrices
MATH10212 Linear Algebra Brief lecture notes 57 Gram Schmidt Process enables us to find an orthogonal basis of a subspace. Let u 1,..., u k be a basis of a subspace V of R n. We begin the process of finding
Chapter One Introduction to Programming
Chapter One Introduction to Programming 1-1 Algorithm and Flowchart Algorithm is a step-by-step procedure for calculation. More precisely, algorithm is an effective method expressed as a finite list of
8 Square matrices continued: Determinants
8 Square matrices continued: Determinants 8. Introduction Determinants give us important information about square matrices, and, as we ll soon see, are essential for the computation of eigenvalues. You
MATLAB Workshop 3 - Vectors in MATLAB
MATLAB: Workshop - Vectors in MATLAB page 1 MATLAB Workshop - Vectors in MATLAB Objectives: Learn about vector properties in MATLAB, methods to create row and column vectors, mathematical functions with
Access Queries (Office 2003)
Access Queries (Office 2003) Technical Support Services Office of Information Technology, West Virginia University OIT Help Desk 293-4444 x 1 oit.wvu.edu/support/training/classmat/db/ Instructor: Kathy
grep, awk and sed three VERY useful command-line utilities Matt Probert, Uni of York grep = global regular expression print
grep, awk and sed three VERY useful command-line utilities Matt Probert, Uni of York grep = global regular expression print In the simplest terms, grep (global regular expression print) will search input
ERDAS Spatial Modeler Language Reference Manual
ERDAS Spatial Modeler Language Reference Manual ERDAS IMAGINE V8.5 ERDAS, Inc. Atlanta, Georgia Copyright 2000 by ERDAS, Inc. All Rights Reserved. Printed in the United States of America. ERDAS Proprietary
Introduction to Matrix Algebra
Psychology 7291: Multivariate Statistics (Carey) 8/27/98 Matrix Algebra - 1 Introduction to Matrix Algebra Definitions: A matrix is a collection of numbers ordered by rows and columns. It is customary
an interactive introduction to MATLAB
an interactive introduction to MATLAB The University of Edinburgh, School of Engineering Craig Warren, 2010-2012 A B O U T T H E C O U R S E This course was developed in the School of Engineering to provide
Introduction to Matrices for Engineers
Introduction to Matrices for Engineers C.T.J. Dodson, School of Mathematics, Manchester Universit 1 What is a Matrix? A matrix is a rectangular arra of elements, usuall numbers, e.g. 1 0-8 4 0-1 1 0 11
MATLAB. The Language of Technical Computing. Programming Tips Version 7
MATLAB The Language of Technical Computing Programming Tips Version 7 How to Contact The MathWorks: www.mathworks.com comp.soft-sys.matlab [email protected] [email protected] [email protected]
GUI Input and Output. Greg Reese, Ph.D Research Computing Support Group Academic Technology Services Miami University
GUI Input and Output Greg Reese, Ph.D Research Computing Support Group Academic Technology Services Miami University GUI Input and Output 2010-13 Greg Reese. All rights reserved 2 Terminology User I/O
Matrix Indexing in MATLAB
1 of 6 10/8/01 11:47 AM Matrix Indexing in MATLAB by Steve Eddins and Loren Shure Send email to Steve Eddins and Loren Shure Indexing into a matrix is a means of selecting a subset of elements from the
Similar matrices and Jordan form
Similar matrices and Jordan form We ve nearly covered the entire heart of linear algebra once we ve finished singular value decompositions we ll have seen all the most central topics. A T A is positive
MATLAB. Input and Output
MATLAB Input and Output Dipl.-Ing. Ulrich Wohlfarth Input with user inputs Strings: Row vector of character (char): text = [ This is,, a text! ] String functions: help strfun Input of: Data: variable =
A Short Guide to R with RStudio
Short Guides to Microeconometrics Fall 2013 Prof. Dr. Kurt Schmidheiny Universität Basel A Short Guide to R with RStudio 1 Introduction 2 2 Installing R and RStudio 2 3 The RStudio Environment 2 4 Additions
