GLY Geostatistics Fall Lecture 2 Introduction to the Basics of MATLAB. Command Window & Environment

Size: px
Start display at page:

Download "GLY Geostatistics Fall Lecture 2 Introduction to the Basics of MATLAB. Command Window & Environment"

Transcription

1 GLY Geostatistics Fall 2011 Lecture 2 Introduction to the Basics of MATLAB MATLAB is a contraction of Matrix Laboratory, and as you'll soon see, matrices are fundamental to everything in the MATLAB scientific computing environment. This program is quick for doing simple things, and incredibly extensible for doing more involved things it can be a simple calculator, a data visualization tool, an advanced programming language, and everything in between. In this course we'll cover just a few ways that MATLAB can be used in Earth science applications, but keep in mind that this tool is limited only by the user's creativity. If you haven t been exposed to programming before, the whole concept may seem daunting, but take comfort in the fact that MATLAB is the most gentle and forgiving way to become familiar with programming. If there's one application that every Earth scientist should know, this is it. Command Window & Environment Really, there's no better way to get acquainted with your new best friend, than to dive right in here's what you'll see (almost) when you first open MATLAB. 1

2 This has been annotated with red text to identify the basic layout (fully customizable to your liking). Let's first concern ourselves with the command window, as this is where the action is. Often you will work at the command line in the command window. The command window allows you to type commands directly and see the results immediately. For example at the >>, define a variable "a" by typing: a=[ ] *alternatively, you could do this with the 'linspace' command, or just by defining it with min/interval/max, like so: a=(1:1:5) What is printed out below is the output of the command. Now create another variable "b" by typing: b=[ ] You've just created two matrices (or vectors if they are just one row or column). Wanna add or subtract them? just type: a+b (or a-b, as the case may be) The result, obviously, was the vector product (or difference) the resulting matrix has the same dimensions as the component matrices, and displays the sum (or difference) of the individual matrix elements. You could have also stored the result as a new matrix "c" by typing: c=a+b Now we'll get visual. To see what you've created, at the command prompt type: plot(a,c) This is just telling MATLAB to create a simple line plot of the vector c as a function of the vector a. Nice and simple. One more little twist, we can perform operations on matrices (vectors) like so: d=exp(c/10) Here we created vector "d" by making the calculation: d=e (c/10). Wasn't that fun? 2

3 Data Types Scalers vs. Vectors vs. Matrices vs. Strings vs. Structures Data is handled in several ways in MATLAB. In the few lines of code above, you created and manipulated several vectors (a.k.a. arrays). These are variables whose dimensions (lengths of rows and columns, respectively) are m x 1 or 1 x n, considering m and n to be any real positive integer. A matrix is an m x n vector. Similarly, a scalar is a 1 x 1 array. You can always change one or more elements in a vector or matrix, by identifying the location (row and column) of the element(s) in question, and reassigning its value. For example, if we wanted to change the 2 nd element of matrix "b", defined above from a value of -3, to a value of - 4, we simply type: b(1,2)=-4 All that did was identify the position of row 1 and column 2 in the 1 x 5 matrix "b", and reestablish it's value as -4. This can be done with entire rows or columns, by using the colon ":". *along the same lines, what if you had a variable that was 4 rows by 5 columns, and you wanted to re-assign a separate variable name to one of the columns? Here's how you go about it. First, create a 4 x 5 matrix: f=rand(4,5) now, assign the 3 rd column to be a separate variable named g: g=f(:,3) The colon (:) means "all rows of" and the 3 refers to the 3 rd column. A string is a chunk of data that is in text format rather than having numerical values. The following creates a string: >> x=['this class is just super.'] x = This class is just super. If you enter letters or numbers in single quotes, as above, they become strings and take on no numerical value sometimes this can be quite valuable in programming. Data structures can be thought of as multi-dimensional matrices with names to identify fields rather than row and column numbers. These can be incredibly powerful but hold off on examples with structures right now we ll revisit them later. 3

4 Getting Help MATLAB has an incredibly good help system. The help is built into MATLAB and can be accessed from the help menu (also the full help documentation is available online at mathworks.com). Because this help is so good, it is silly to reproduce everything here. We show some brief descriptions on commands below, but we expect you to READ THE HELP FILES. To get help on a command, type "help commandname" or "doc commandname" in Command Window where commandname is the command of interest. For example, typing: >> help plot provides the detailed instructions found in the "plot" command, whereas: >> doc plot opens a separate help viewer window and gives the detailed documentation/examples, shown below. 4

5 MATLAB's help documentation will basically be the best reference or textbook you could ask for in this class. Writing an m-file We'll return to the Command Window later, as it is often the first place you go to try out new commands, but for now we'll introduce the Editor Window, which is where you will write your first m-files (with a.m extension), a.k.a. your first "programs". The MATLAB Editor is nothing more than a simple text editor (e.g. Notepad or Wordpad (windows), TextEdit or TextWrangler (mac), and vi or emacs (unix), just to name a few). You are free to use any text editor you choose, but the MATLAB editor has some cool features, which are handy for writing m-files or functions. When you write an m-file, you are really just storing a bunch of sequential commands that could just as easily be typed at the >> (prompt) in the Command Window, but once you store them in an m-file, you can just run the m-file, rather than re-typing each command individually, every time you want to perform a series of mathematical operations. Like a macro in Excel, this really saves time. Here's one by me read what I've got in there: The above m-file results in the following plot: 5

6 Now, try to write an m-file that creates the 1 x 5 matrix (number of rows x number of columns, as is the MATLAB convention), that you built by matrix addition above (matrix "c") and plots it against matrix "a". Give the m-file a name and save it with the.m extension. Here's a tip start your m-file with the "clear" command (see the help), this will give you a clean slate before your m-file is executed. Once the program is saved you can just type the name of the file and all of the commands will execute. For now, be sure to have your working directory (try "help pwd") be the same as the directory in which you saved your m-file (we can change this later with the "path" command). What I do when writing a new m-file, is try a series of commands at the command line, then copy them from the Command History and paste them into an m-file. This way, I can be sure that each command works the way I want it to. By the way...to get a list of currently defined variables You can always find out what you've got goin' on in MATLAB by typing 'whos'. This will list all of the known variables and some details about them to delve further, just type the name of the variable at the command line. Also, if you are into the Excel-style thing, you can double 6

7 click on a variable name in the workspace window and it will open the "Array Editor", which enables you to examine the contents of every cell in a matrix. Writing a function While m-files are very easy to create, they are just a bit limiting because they occupy MATLAB's global memory. A better way to program in MATLAB, (trust me) is to create functions. You're already familiar with MATLAB functions, as every command is simply a function that is based on other functions and written (in an exhaustively general way) by some geek at MATLAB central. Now we'll re-tool our m-file that we wrote above, as a general function. Functions are ways to make your code general for use over and over again on multiple different data sets for example. See the documentation on Functions and we'll walk through it together in class. Then you "call" the function from the command line (or within another m-file) by: >> [c,d]=sample_function(a,b) making sure that "a" and "b" are already defined. The function temporarily renames a, b, c, and d, while executing, then returns the results as if no funny business ever occurred. You can see how it might not always be convenient to name variables so inflexibly functions can really save our tails, in this regard. Working in a Directory & Your Path MATLAB is (thankfully) specific about where you are working (i.e. in which directory). To find out where you are working right now, type pwd. It will probably respond with something that looks like this: >> pwd ans = 7

8 /Users/pna/Documents/MATLAB At first, you ll find it easier to work in the same directory when getting familiar with MATLAB this way any.m files you write will be visible to MATLAB. In the future, however, after you ve built a substantial library of your own MATLAB.m files, you ll want to add directories to your path. Your path is a list of directories (folders) that you d like MATLAB to be able to readily access every time you sit down to work. We can come back to this later. By the way...repeating commands and command completion You can always retrieve previous commands you have executed by pressing the up arrow or by typing the first letter of the command and then pressing up arrow. You can save any command by copying it from the command window and pasting it into an editor window. Saving this as a m-file allows you to repeat the command anytime you type the name of the file in your command window. Also, if you know that the command you want begins with a certain letter or certain few letters, you can just type the first couple letters and hit tab. This will bring up a list to choose from. Worked Example Ok, now we're going to work through an exercise in data treatment, by using an example from Gerry Middleton's book (reference below). First, obtain the sample data set from our course website: The data file (called dewijs.dat) is in ascii text format, which makes things easy. Once you copy it to your working directory, you can load it into the current workspace by typing: >> load dewijs.dat Here's Middleton's excerpt on how to handle the data: 8

9 9

10 10

11 11

12 References In my opinion, the best reference for MATLAB is the help documentation included with the program it usually gives some good examples of how to use a command in concert with other commands. Additionally, you'll learn a lot just by scanning the web for m-files and functions that others have written again, learning by example often works best. If you're hungry for more MATLAB reading material, here are some recommendations (with my comments), but I have not seen everything out there, and there's always some engineer coming out with a new MATLAB book. Pratap, Rudra, Getting Started with MATLAB 7: A Quick Introduction for Scientists and Engineers, Oxford University Press, USA. * I have the edition of this book that went with MATLAB 4, but found it very useful don't know if the latest edition is good or not. Middleton, Gerard V., Data Analysis in the Earth Sciences Using MATLAB, Prentice Hall. * oops, this one is out of print, but if you'd like to borrow my (or John's) copy to Xerox, you may. It's pretty good for what we're doing in this course, as it was written by a geologist (a rather famous one at that), but it is focused mostly on the statistical applications of MATLAB. Hanselman and Littlefield, Mastering MATLAB 7, Prentice Hall. * This book is fine, but not much more than the help documentation can provide if you want a portable version of that, then this might do the trick. You should also rely on your Googling skills documentation for most MATLAB commands (or even other people's codes) are available from obscure websites. This can be extremely quick and effective. 12

13 Appendix List of Basic Commands As an appendix to the first lesson here, I've inserted some pages from the end of Pratap's book. These pages include a pretty good list of MATLAB commands to get you going remember, to get more complete documentation on any of the commands, just type "help " then the command name. 13

14 14

15 15

16 16

17 17

18 18

19 19

20 20

21 21

22 22

Matlab notes Matlab is a matrix-based, high-performance language for technical computing It integrates computation, visualisation and programming usin

Matlab notes Matlab is a matrix-based, high-performance language for technical computing It integrates computation, visualisation and programming usin Matlab notes Matlab is a matrix-based, high-performance language for technical computing It integrates computation, visualisation and programming using familiar mathematical notation The name Matlab stands

More information

Matlab for FMRI Module 1: the basics Instructor: Luis Hernandez-Garcia

Matlab for FMRI Module 1: the basics Instructor: Luis Hernandez-Garcia Matlab for FMRI Module 1: the basics Instructor: Luis Hernandez-Garcia The goal for this tutorial is to make sure that you understand a few key concepts related to programming, and that you know the basics

More information

You just told Matlab to create two strings of letters 'I have no idea what I m doing' and to name those strings str1 and str2.

You just told Matlab to create two strings of letters 'I have no idea what I m doing' and to name those strings str1 and str2. Chapter 2: Strings and Vectors str1 = 'this is all new to me' str2='i have no clue what I am doing' str1 = this is all new to me str2 = I have no clue what I am doing You just told Matlab to create two

More information

Lesson 2 Characteristics of Good Code Writing (* acknowledgements to Dr. G. Spinelli, New Mexico Tech, for a substantial portion of this lesson)

Lesson 2 Characteristics of Good Code Writing (* acknowledgements to Dr. G. Spinelli, New Mexico Tech, for a substantial portion of this lesson) T-01-13-2009 GLY 6932/6862 Numerical Methods in Earth Sciences Spring 2009 Lesson 2 Characteristics of Good Code Writing (* acknowledgements to Dr. G. Spinelli, New Mexico Tech, for a substantial portion

More information

Week - 01 Lecture - 04 Downloading and installing Python

Week - 01 Lecture - 04 Downloading and installing Python Programming, Data Structures and Algorithms in Python Prof. Madhavan Mukund Department of Computer Science and Engineering Indian Institute of Technology, Madras Week - 01 Lecture - 04 Downloading and

More information

MATLAB Basics. Configure a MATLAB Package 6/7/2017. Stanley Liang, PhD York University. Get a MATLAB Student License on Matworks

MATLAB Basics. Configure a MATLAB Package 6/7/2017. Stanley Liang, PhD York University. Get a MATLAB Student License on Matworks MATLAB Basics Stanley Liang, PhD York University Configure a MATLAB Package Get a MATLAB Student License on Matworks Visit MathWorks at https://www.mathworks.com/ It is recommended signing up with a student

More information

Appendix A. Introduction to MATLAB. A.1 What Is MATLAB?

Appendix A. Introduction to MATLAB. A.1 What Is MATLAB? Appendix A Introduction to MATLAB A.1 What Is MATLAB? MATLAB is a technical computing environment developed by The Math- Works, Inc. for computation and data visualization. It is both an interactive system

More information

(Ca...

(Ca... 1 of 8 9/7/18, 1:59 PM Getting started with 228 computational exercises Many physics problems lend themselves to solution methods that are best implemented (or essentially can only be implemented) with

More information

Intro To Excel Spreadsheet for use in Introductory Sciences

Intro To Excel Spreadsheet for use in Introductory Sciences INTRO TO EXCEL SPREADSHEET (World Population) Objectives: Become familiar with the Excel spreadsheet environment. (Parts 1-5) Learn to create and save a worksheet. (Part 1) Perform simple calculations,

More information

Exploring extreme weather with Excel - The basics

Exploring extreme weather with Excel - The basics Exploring extreme weather with Excel - The basics These activities will help to develop your data skills using Excel and explore extreme weather in the UK. This activity introduces the basics of using

More information

Part I: MATLAB Overview

Part I: MATLAB Overview Part I: MATLAB Overview Chapters 1 through 5 provide an introduction and overview of some usable MATLAB coding approaches and how to extend these approaches by developing increasingly sophisticated scripts.

More information

Physics REU Unix Tutorial

Physics REU Unix Tutorial Physics REU Unix Tutorial What is unix? Unix is an operating system. In simple terms, its the set of programs that makes a computer work. It can be broken down into three parts. (1) kernel: The component

More information

Getting To Know Matlab

Getting To Know Matlab Getting To Know Matlab The following worksheets will introduce Matlab to the new user. Please, be sure you really know each step of the lab you performed, even if you are asking a friend who has a better

More information

MATLAB TUTORIAL WORKSHEET

MATLAB TUTORIAL WORKSHEET MATLAB TUTORIAL WORKSHEET What is MATLAB? Software package used for computation High-level programming language with easy to use interactive environment Access MATLAB at Tufts here: https://it.tufts.edu/sw-matlabstudent

More information

Introduction. Matlab for Psychologists. Overview. Coding v. button clicking. Hello, nice to meet you. Variables

Introduction. Matlab for Psychologists. Overview. Coding v. button clicking. Hello, nice to meet you. Variables Introduction Matlab for Psychologists Matlab is a language Simple rules for grammar Learn by using them There are many different ways to do each task Don t start from scratch - build on what other people

More information

MATLAB Programming for Numerical Computation Dr. Niket Kaisare Department Of Chemical Engineering Indian Institute of Technology, Madras

MATLAB Programming for Numerical Computation Dr. Niket Kaisare Department Of Chemical Engineering Indian Institute of Technology, Madras MATLAB Programming for Numerical Computation Dr. Niket Kaisare Department Of Chemical Engineering Indian Institute of Technology, Madras Module No. #01 Lecture No. #1.1 Introduction to MATLAB programming

More information

SECTION 1: INTRODUCTION. ENGR 112 Introduction to Engineering Computing

SECTION 1: INTRODUCTION. ENGR 112 Introduction to Engineering Computing SECTION 1: INTRODUCTION ENGR 112 Introduction to Engineering Computing 2 Course Overview What is Programming? 3 Programming The implementation of algorithms in a particular computer programming language

More information

MATH (CRN 13695) Lab 1: Basics for Linear Algebra and Matlab

MATH (CRN 13695) Lab 1: Basics for Linear Algebra and Matlab MATH 495.3 (CRN 13695) Lab 1: Basics for Linear Algebra and Matlab Below is a screen similar to what you should see when you open Matlab. The command window is the large box to the right containing the

More information

Matlab Tutorial 1: Working with variables, arrays, and plotting

Matlab Tutorial 1: Working with variables, arrays, and plotting Matlab Tutorial 1: Working with variables, arrays, and plotting Setting up Matlab First of all, let's make sure we all have the same layout of the different windows in Matlab. Go to Home Layout Default.

More information

Matlab Introduction. Scalar Variables and Arithmetic Operators

Matlab Introduction. Scalar Variables and Arithmetic Operators Matlab Introduction Matlab is both a powerful computational environment and a programming language that easily handles matrix and complex arithmetic. It is a large software package that has many advanced

More information

Lab 1: Setup 12:00 PM, Sep 10, 2017

Lab 1: Setup 12:00 PM, Sep 10, 2017 CS17 Integrated Introduction to Computer Science Hughes Lab 1: Setup 12:00 PM, Sep 10, 2017 Contents 1 Your friendly lab TAs 1 2 Pair programming 1 3 Welcome to lab 2 4 The file system 2 5 Intro to terminal

More information

Matlab = Matrix Laboratory. It is designed to be great at handling matrices.

Matlab = Matrix Laboratory. It is designed to be great at handling matrices. INTRODUCTION: Matlab = Matrix Laboratory. It is designed to be great at handling matrices. Matlab is a high-level language and interactive environment. You write simple ASCII text that is translated into

More information

Azon Master Class. By Ryan Stevenson Guidebook #5 WordPress Usage

Azon Master Class. By Ryan Stevenson   Guidebook #5 WordPress Usage Azon Master Class By Ryan Stevenson https://ryanstevensonplugins.com/ Guidebook #5 WordPress Usage Table of Contents 1. Widget Setup & Usage 2. WordPress Menu System 3. Categories, Posts & Tags 4. WordPress

More information

Lab1: Communicating science

Lab1: Communicating science Lab1: Communicating science We would all like to be good citizens of the scientific community. An important part of being a good citizen is being able to communicate results, papers, and ideas. Since many

More information

Ruby on Rails Welcome. Using the exercise files

Ruby on Rails Welcome. Using the exercise files Ruby on Rails Welcome Welcome to Ruby on Rails Essential Training. In this course, we're going to learn the popular open source web development framework. We will walk through each part of the framework,

More information

OUTLINES. Variable names in MATLAB. Matrices, Vectors and Scalar. Entering a vector Colon operator ( : ) Mathematical operations on vectors.

OUTLINES. Variable names in MATLAB. Matrices, Vectors and Scalar. Entering a vector Colon operator ( : ) Mathematical operations on vectors. 1 LECTURE 3 OUTLINES Variable names in MATLAB Examples Matrices, Vectors and Scalar Scalar Vectors Entering a vector Colon operator ( : ) Mathematical operations on vectors examples 2 VARIABLE NAMES IN

More information

MATLAB Project: Getting Started with MATLAB

MATLAB Project: Getting Started with MATLAB Name Purpose: To learn to create matrices and use various MATLAB commands for reference later MATLAB built-in functions used: [ ] : ; + - * ^, size, help, format, eye, zeros, ones, diag, rand, round, cos,

More information

MATLAB. Miran H. S. Mohammed. Lecture 1

MATLAB. Miran H. S. Mohammed. Lecture 1 MATLAB Miran H. S. Mohammed 1 Lecture 1 OUTLINES Introduction Why using MATLAB Installing MATLAB Activate your installation Getting started Some useful command Using MATLAB as a calculator 2 INTRODUCTION

More information

Where Did My Files Go? How to find your files using Windows 10

Where Did My Files Go? How to find your files using Windows 10 Where Did My Files Go? How to find your files using Windows 10 Have you just upgraded to Windows 10? Are you finding it difficult to find your files? Are you asking yourself Where did My Computer or My

More information

Excel Primer CH141 Fall, 2017

Excel Primer CH141 Fall, 2017 Excel Primer CH141 Fall, 2017 To Start Excel : Click on the Excel icon found in the lower menu dock. Once Excel Workbook Gallery opens double click on Excel Workbook. A blank workbook page should appear

More information

EOSC 352 MATLAB Review

EOSC 352 MATLAB Review EOSC 352 MATLAB Review To use MATLAB, you can either (1) type commands in the window (i.e., at the command line ) or (2) type in the name of a file you have made, whose name ends in.m and which contains

More information

Introduction to MATLAB

Introduction to MATLAB Introduction to MATLAB MATLAB stands for MATrix LABoratory. Originally written by Cleve Moler for college linear algebra courses, MATLAB has evolved into the premier software for linear algebra computations

More information

Microsoft Excel 2007

Microsoft Excel 2007 Learning computers is Show ezy Microsoft Excel 2007 301 Excel screen, toolbars, views, sheets, and uses for Excel 2005-8 Steve Slisar 2005-8 COPYRIGHT: The copyright for this publication is owned by Steve

More information

MITOCW watch?v=kz7jjltq9r4

MITOCW watch?v=kz7jjltq9r4 MITOCW watch?v=kz7jjltq9r4 PROFESSOR: We're going to look at the most fundamental of all mathematical data types, namely sets, and let's begin with the definitions. So informally, a set is a collection

More information

Introduction to MATLAB

Introduction to MATLAB Introduction to MATLAB Introduction: MATLAB is a powerful high level scripting language that is optimized for mathematical analysis, simulation, and visualization. You can interactively solve problems

More information

EGR 111 Introduction to MATLAB

EGR 111 Introduction to MATLAB EGR 111 Introduction to MATLAB This lab introduces the MATLAB help facility, shows how MATLAB TM, which stands for MATrix LABoratory, can be used as an advanced calculator. This lab also introduces assignment

More information

Creating Word Outlines from Compendium on a Mac

Creating Word Outlines from Compendium on a Mac Creating Word Outlines from Compendium on a Mac Using the Compendium Outline Template and Macro for Microsoft Word for Mac: Background and Tutorial Jeff Conklin & KC Burgess Yakemovic, CogNexus Institute

More information

Foundations, Reasoning About Algorithms, and Design By Contract CMPSC 122

Foundations, Reasoning About Algorithms, and Design By Contract CMPSC 122 Foundations, Reasoning About Algorithms, and Design By Contract CMPSC 122 I. Logic 101 In logic, a statement or proposition is a sentence that can either be true or false. A predicate is a sentence in

More information

ECON 502 INTRODUCTION TO MATLAB Nov 9, 2007 TA: Murat Koyuncu

ECON 502 INTRODUCTION TO MATLAB Nov 9, 2007 TA: Murat Koyuncu ECON 502 INTRODUCTION TO MATLAB Nov 9, 2007 TA: Murat Koyuncu 0. What is MATLAB? 1 MATLAB stands for matrix laboratory and is one of the most popular software for numerical computation. MATLAB s basic

More information

Solar Campaign Google Guide. PART 1 Google Drive

Solar Campaign Google Guide. PART 1 Google Drive Solar Campaign Google Guide This guide assumes your team has already retrieved its template Solar Campaign folder from Vital Communities and shared it with the entire volunteer team on Google Drive. To

More information

Excel Basics Rice Digital Media Commons Guide Written for Microsoft Excel 2010 Windows Edition by Eric Miller

Excel Basics Rice Digital Media Commons Guide Written for Microsoft Excel 2010 Windows Edition by Eric Miller Excel Basics Rice Digital Media Commons Guide Written for Microsoft Excel 2010 Windows Edition by Eric Miller Table of Contents Introduction!... 1 Part 1: Entering Data!... 2 1.a: Typing!... 2 1.b: Editing

More information

VIDYA SAGAR COMPUTER ACADEMY. Excel Basics

VIDYA SAGAR COMPUTER ACADEMY. Excel Basics Excel Basics You will need Microsoft Word, Excel and an active web connection to use the Introductory Economics Labs materials. The Excel workbooks are saved as.xls files so they are fully compatible with

More information

Chapter One: Getting Started With IBM SPSS for Windows

Chapter One: Getting Started With IBM SPSS for Windows Chapter One: Getting Started With IBM SPSS for Windows Using Windows The Windows start-up screen should look something like Figure 1-1. Several standard desktop icons will always appear on start up. Note

More information

Depending on the computer you find yourself in front of, here s what you ll need to do to open SPSS.

Depending on the computer you find yourself in front of, here s what you ll need to do to open SPSS. 1 SPSS 13.0 for Windows Introductory Assignment Material covered: Creating a new SPSS data file, variable labels, value labels, saving data files, opening an existing SPSS data file, generating frequency

More information

Running Wordstar 6 on Windows 7 Using vdos

Running Wordstar 6 on Windows 7 Using vdos Running Wordstar 6 on Windows 7 Using vdos Thanks to Dennis McCunney for helping me learn how to set vdos up. DISCLAIMER #1: As explained below, I am running Wordstar 6 for DOS on a Windows 7 (64- bit)

More information

2: Functions, Equations, and Graphs

2: Functions, Equations, and Graphs 2: Functions, Equations, and Graphs 2-1: Relations and Functions Relations A relation is a set of coordinate pairs some matching between two variables (say, x and y). One of the variables must be labeled

More information

MITOCW ocw f99-lec07_300k

MITOCW ocw f99-lec07_300k MITOCW ocw-18.06-f99-lec07_300k OK, here's linear algebra lecture seven. I've been talking about vector spaces and specially the null space of a matrix and the column space of a matrix. What's in those

More information

Interface. 2. Interface Adobe InDesign CS2 H O T

Interface. 2. Interface Adobe InDesign CS2 H O T 2. Interface Adobe InDesign CS2 H O T 2 Interface The Welcome Screen Interface Overview The Toolbox Toolbox Fly-Out Menus InDesign Palettes Collapsing and Grouping Palettes Moving and Resizing Docked or

More information

ECE 3793 Matlab Project 1

ECE 3793 Matlab Project 1 ECE 3793 Matlab Project 1 Spring 2017 Dr. Havlicek DUE: 02/04/2017, 11:59 PM Introduction: You will need to use Matlab to complete this assignment. So the first thing you need to do is figure out how you

More information

The first thing we ll need is some numbers. I m going to use the set of times and drug concentration levels in a patient s bloodstream given below.

The first thing we ll need is some numbers. I m going to use the set of times and drug concentration levels in a patient s bloodstream given below. Graphing in Excel featuring Excel 2007 1 A spreadsheet can be a powerful tool for analyzing and graphing data, but it works completely differently from the graphing calculator that you re used to. If you

More information

Script for Interview about LATEX and Friends

Script for Interview about LATEX and Friends Script for Interview about LATEX and Friends M. R. C. van Dongen July 13, 2012 Contents 1 Introduction 2 2 Typography 3 2.1 Typeface Selection................................. 3 2.2 Kerning.......................................

More information

Basic Unix and Matlab Logging in from another Unix machine, e.g. ECS lab Dells

Basic Unix and Matlab Logging in from another Unix machine, e.g. ECS lab Dells Basic Unix and Matlab 101 1 Logging in from another Unix machine, e.g. ECS lab Dells The computer we will be using for our assignments is called malkhut.engr.umbc.edu which is a Unix/Linux machine that

More information

Introduction to the workbook and spreadsheet

Introduction to the workbook and spreadsheet Excel Tutorial To make the most of this tutorial I suggest you follow through it while sitting in front of a computer with Microsoft Excel running. This will allow you to try things out as you follow along.

More information

When you first log in, you will be placed in your home directory. To see what this directory is named, type:

When you first log in, you will be placed in your home directory. To see what this directory is named, type: Chem 7520 Unix Crash Course Throughout this page, the command prompt will be signified by > at the beginning of a line (you do not type this symbol, just everything after it). Navigation When you first

More information

6.001 Notes: Section 8.1

6.001 Notes: Section 8.1 6.001 Notes: Section 8.1 Slide 8.1.1 In this lecture we are going to introduce a new data type, specifically to deal with symbols. This may sound a bit odd, but if you step back, you may realize that everything

More information

Introduction to Scientific Computing with Matlab

Introduction to Scientific Computing with Matlab Introduction to Scientific Computing with Matlab In the previous reading, we discussed the basics of vectors and matrices, including matrix addition and multiplication. In this class, we ll explore more

More information

Introduction to MATLAB

Introduction to MATLAB Chapter 1 Introduction to MATLAB 1.1 Software Philosophy Matrix-based numeric computation MATrix LABoratory built-in support for standard matrix and vector operations High-level programming language Programming

More information

Getting Help...71 Getting help with ScreenSteps...72

Getting Help...71 Getting help with ScreenSteps...72 GETTING STARTED Table of Contents Onboarding Guides... 3 Evaluating ScreenSteps--Welcome... 4 Evaluating ScreenSteps--Part 1: Create 3 Manuals... 6 Evaluating ScreenSteps--Part 2: Customize Your Knowledge

More information

Google Docs Website (Sign in or create an account):

Google Docs Website (Sign in or create an account): What is Google Docs? Google Docs is a free online word processor, spreadsheet, and presentation editor that allows you to create, store, share, and collaborate on documents with others. Create and share

More information

How to Use Google. Sign in to your Chromebook. Let s get started: The sign-in screen. https://www.youtube.com/watch?v=ncnswv70qgg

How to Use Google. Sign in to your Chromebook. Let s get started: The sign-in screen. https://www.youtube.com/watch?v=ncnswv70qgg How to Use Google Sign in to your Chromebook https://www.youtube.com/watch?v=ncnswv70qgg Use a Google Account to sign in to your Chromebook. A Google Account lets you access all of Google s web services

More information

HOW TO EXPORT BUYER NAMES & ADDRESSES FROM PAYPAL TO A CSV FILE

HOW TO EXPORT BUYER NAMES & ADDRESSES FROM PAYPAL TO A CSV FILE HOW TO EXPORT BUYER NAMES & ADDRESSES FROM PAYPAL TO A CSV FILE If your buyers use PayPal to pay for their purchases, you can quickly export all names and addresses to a type of spreadsheet known as a

More information

Slide 1 CS 170 Java Programming 1 Testing Karel

Slide 1 CS 170 Java Programming 1 Testing Karel CS 170 Java Programming 1 Testing Karel Introducing Unit Tests to Karel's World Slide 1 CS 170 Java Programming 1 Testing Karel Hi Everybody. This is the CS 170, Java Programming 1 lecture, Testing Karel.

More information

Variable Definition and Statement Suppression You can create your own variables, and assign them values using = >> a = a = 3.

Variable Definition and Statement Suppression You can create your own variables, and assign them values using = >> a = a = 3. MATLAB Introduction Accessing Matlab... Matlab Interface... The Basics... 2 Variable Definition and Statement Suppression... 2 Keyboard Shortcuts... More Common Functions... 4 Vectors and Matrices... 4

More information

The Foundation. Review in an instant

The Foundation. Review in an instant The Foundation Review in an instant Table of contents Introduction 1 Basic use of Excel 2 - Important Excel terms - Important toolbars - Inserting and deleting columns and rows - Copy and paste Calculations

More information

DOWNLOAD PDF EXCEL MACRO TO PRINT WORKSHEET TO

DOWNLOAD PDF EXCEL MACRO TO PRINT WORKSHEET TO Chapter 1 : All about printing sheets, workbook, charts etc. from Excel VBA - blog.quintoapp.com Hello Friends, Hope you are doing well!! Thought of sharing a small VBA code to help you writing a code

More information

Computer Vision. Matlab

Computer Vision. Matlab Computer Vision Matlab A good choice for vision program development because Easy to do very rapid prototyping Quick to learn, and good documentation A good library of image processing functions Excellent

More information

WHAT IS MATLAB?... 1 STARTING MATLAB & USING THE COMMAND LINE... 1 BASIC ARITHMETIC OPERATIONS... 5 ORDER OF OPERATIONS... 7

WHAT IS MATLAB?... 1 STARTING MATLAB & USING THE COMMAND LINE... 1 BASIC ARITHMETIC OPERATIONS... 5 ORDER OF OPERATIONS... 7 Contents WHAT IS MATLAB?... 1 STARTING MATLAB & USING THE COMMAND LINE... 1 BASIC ARITHMETIC OPERATIONS... 5 ORDER OF OPERATIONS... 7 WHAT IS MATLAB? MATLAB stands for MATrix LABoratory. It is designed

More information

Chapter 2. Editing And Compiling

Chapter 2. Editing And Compiling Chapter 2. Editing And Compiling Now that the main concepts of programming have been explained, it's time to actually do some programming. In order for you to "edit" and "compile" a program, you'll need

More information

CITS2401 Computer Analysis & Visualisation

CITS2401 Computer Analysis & Visualisation FACULTY OF ENGINEERING, COMPUTING AND MATHEMATICS CITS2401 Computer Analysis & Visualisation SCHOOL OF COMPUTER SCIENCE AND SOFTWARE ENGINEERING Topic 3 Introduction to Matlab Material from MATLAB for

More information

Introduction to MATLAB

Introduction to MATLAB Introduction to MATLAB This note will introduce you to MATLAB for the purposes of this course. Most of the emphasis is on how to set up MATLAB on your computer. The purposes of this supplement are two.

More information

! Emacs Howto Tutorial!

! Emacs Howto Tutorial! Emacs Howto Tutorial According to a description at GNU.org, Emacs is the extensible, customizable, selfdocumenting real-time display editor. It offers true LISP -- smoothly integrated into the editor --

More information

Tracking changes in Word 2007 Table of Contents

Tracking changes in Word 2007 Table of Contents Tracking changes in Word 2007 Table of Contents TRACK CHANGES: OVERVIEW... 2 UNDERSTANDING THE TRACK CHANGES FEATURE... 2 HOW DID THOSE TRACKED CHANGES AND COMMENTS GET THERE?... 2 WHY MICROSOFT OFFICE

More information

An Introduction to Maple This lab is adapted from a lab created by Bob Milnikel.

An Introduction to Maple This lab is adapted from a lab created by Bob Milnikel. Some quick tips for getting started with Maple: An Introduction to Maple This lab is adapted from a lab created by Bob Milnikel. [Even before we start, take note of the distinction between Tet mode and

More information

Chapter 1. Getting Started

Chapter 1. Getting Started Chapter 1. Hey, Logy, whatcha doing? What s it look like I m doing. I m cleaning the windows so we can get started on our new adventure. Can t you leave the housekeeping until later. We ve got Logo work

More information

AMATH 352: MATLAB Tutorial written by Peter Blossey Department of Applied Mathematics University of Washington Seattle, WA

AMATH 352: MATLAB Tutorial written by Peter Blossey Department of Applied Mathematics University of Washington Seattle, WA AMATH 352: MATLAB Tutorial written by Peter Blossey Department of Applied Mathematics University of Washington Seattle, WA MATLAB (short for MATrix LABoratory) is a very useful piece of software for numerical

More information

CS1114: Matlab Introduction

CS1114: Matlab Introduction CS1114: Matlab Introduction 1 Introduction The purpose of this introduction is to provide you a brief introduction to the features of Matlab that will be most relevant to your work in this course. Even

More information

CSE/NEUBEH 528 Homework 0: Introduction to Matlab

CSE/NEUBEH 528 Homework 0: Introduction to Matlab CSE/NEUBEH 528 Homework 0: Introduction to Matlab (Practice only: Do not turn in) Okay, let s begin! Open Matlab by double-clicking the Matlab icon (on MS Windows systems) or typing matlab at the prompt

More information

McTutorial: A MATLAB Tutorial

McTutorial: A MATLAB Tutorial McGill University School of Computer Science Sable Research Group McTutorial: A MATLAB Tutorial Lei Lopez Last updated: August 2014 w w w. s a b l e. m c g i l l. c a Contents 1 MATLAB BASICS 3 1.1 MATLAB

More information

Getting Started With Linux and Fortran Part 2

Getting Started With Linux and Fortran Part 2 Getting Started With Linux and Fortran Part 2 by Simon Campbell [The K Desktop Environment, one of the many desktops available for Linux] ASP 3012 (Stars) Computer Tutorial 2 1 Contents 1 Some Funky Linux

More information

Operating System Interaction via bash

Operating System Interaction via bash Operating System Interaction via bash bash, or the Bourne-Again Shell, is a popular operating system shell that is used by many platforms bash uses the command line interaction style generally accepted

More information

Mastering the Actuarial Tool Kit

Mastering the Actuarial Tool Kit Mastering the Actuarial Tool Kit By Sean Lorentz, ASA, MAAA Quick, what s your favorite Excel formula? Is it the tried and true old faithful SUMPRODUCT formula we ve all grown to love, or maybe once Microsoft

More information

Office Hours: Hidden gems in Excel 2007

Office Hours: Hidden gems in Excel 2007 Page 1 of 6 Help and How-to Office Hours: Hidden gems in Excel 2007 October 1, 2007 Jean Philippe Bagel Sometimes love at first sight lasts for years. This week's columnist offers new and interesting ways

More information

How to Improve Your Campaign Conversion Rates

How to Improve Your  Campaign Conversion Rates How to Improve Your Email Campaign Conversion Rates Chris Williams Author of 7 Figure Business Models How to Exponentially Increase Conversion Rates I'm going to teach you my system for optimizing an email

More information

TABLE OF CONTENTS CHANGES IN 2.0 FROM 1.O

TABLE OF CONTENTS CHANGES IN 2.0 FROM 1.O TABLE OF CONTENTS CHANGES IN 2.0 FROM 1.0 INTRODUCTION THE BOTTOM LINE ATTACHED FILES FONTS KEYBOARD WORD PROCESSING PROGRAMS INSTALLING FONTS INSTALLING KEYBOARDS MODIFYING KEYBOARDS TO YOUR LIKING OPEN

More information

SLACK. What is it? How do I use It?

SLACK. What is it? How do I use It? SLACK What is it? How do I use It? What is Slack? It s a chat room for our whole chapter. If you ve heard of Internet Relay Chat (IRC) or WhatsApp before, it s fairly similar. The chapter s Slack is divided

More information

GIS LAB 1. Basic GIS Operations with ArcGIS. Calculating Stream Lengths and Watershed Areas.

GIS LAB 1. Basic GIS Operations with ArcGIS. Calculating Stream Lengths and Watershed Areas. GIS LAB 1 Basic GIS Operations with ArcGIS. Calculating Stream Lengths and Watershed Areas. ArcGIS offers some advantages for novice users. The graphical user interface is similar to many Windows packages

More information

C++ Algorithms For Digital Signal Processing (2nd Edition) Ebooks Free

C++ Algorithms For Digital Signal Processing (2nd Edition) Ebooks Free C++ Algorithms For Digital Signal Processing (2nd Edition) Ebooks Free Bring the power and flexibility of C++ to all your DSP applications The multimedia revolution has created hundreds of new uses for

More information

Introduction to MATLAB

Introduction to MATLAB Introduction to MATLAB The Desktop When you start MATLAB, the desktop appears, containing tools (graphical user interfaces) for managing files, variables, and applications associated with MATLAB. The following

More information

Light Speed with Excel

Light Speed with Excel Work @ Light Speed with Excel 2018 Excel University, Inc. All Rights Reserved. http://beacon.by/magazine/v4/94012/pdf?type=print 1/64 Table of Contents Cover Table of Contents PivotTable from Many CSV

More information

Using Microsoft Excel

Using Microsoft Excel Using Microsoft Excel Introduction This handout briefly outlines most of the basic uses and functions of Excel that we will be using in this course. Although Excel may be used for performing statistical

More information

1 Introduction to Matlab

1 Introduction to Matlab 1 Introduction to Matlab 1. What is Matlab? Matlab is a computer program designed to do mathematics. You might think of it as a super-calculator. That is, once Matlab has been started, you can enter computations,

More information

Creating Vector Shapes Week 2 Assignment 1. Illustrator Defaults

Creating Vector Shapes Week 2 Assignment 1. Illustrator Defaults Illustrator Defaults Before we begin, we are going to make sure that all of us are using the same settings within our application. For this class, we will always want to make sure that our application

More information

Intro. Scheme Basics. scm> 5 5. scm>

Intro. Scheme Basics. scm> 5 5. scm> Intro Let s take some time to talk about LISP. It stands for LISt Processing a way of coding using only lists! It sounds pretty radical, and it is. There are lots of cool things to know about LISP; if

More information

The Mac OS X Command Line: Unix Under The Hood Ebooks Free

The Mac OS X Command Line: Unix Under The Hood Ebooks Free The Mac OS X Command Line: Unix Under The Hood Ebooks Free The Mac command line offers a faster, easier way to accomplish many tasks. It's also the medium for many commands that aren't accessible using

More information

A Brief Introduction to Matlab for Econometrics Simulations. Greg Fischer MIT February 2006

A Brief Introduction to Matlab for Econometrics Simulations. Greg Fischer MIT February 2006 A Brief Introduction to Matlab for Econometrics Simulations Greg Fischer MIT February 2006 Introduction First, Don t Panic! As the problem set assured you, the point of the programming exercises is to

More information

QUICK EXCEL TUTORIAL. The Very Basics

QUICK EXCEL TUTORIAL. The Very Basics QUICK EXCEL TUTORIAL The Very Basics You Are Here. Titles & Column Headers Merging Cells Text Alignment When we work on spread sheets we often need to have a title and/or header clearly visible. Merge

More information

MATLAB Project: Getting Started with MATLAB

MATLAB Project: Getting Started with MATLAB Name Purpose: To learn to create matrices and use various MATLAB commands for reference later MATLAB functions used: [ ] : ; + - * ^, size, help, format, eye, zeros, ones, diag, rand, round, cos, sin,

More information

EE3TP4: Signals and Systems Lab 1: Introduction to Matlab Tim Davidson Ext Objective. Report. Introduction to Matlab

EE3TP4: Signals and Systems Lab 1: Introduction to Matlab Tim Davidson Ext Objective. Report. Introduction to Matlab EE3TP4: Signals and Systems Lab 1: Introduction to Matlab Tim Davidson Ext. 27352 davidson@mcmaster.ca Objective To help you familiarize yourselves with Matlab as a computation and visualization tool in

More information

Alternate Appendix A: Using the TI-92 Calculator

Alternate Appendix A: Using the TI-92 Calculator Alternate Appendix A: Using the TI-92 Calculator This document summarizes TI-92 calculation and programming operations as they relate to the text, Inside Your Calculator. Even those who do not read the

More information

How to program with Matlab (PART 1/3)

How to program with Matlab (PART 1/3) Programming course 1 09/12/2013 Martin SZINTE How to program with Matlab (PART 1/3) Plan 0. Setup of Matlab. 1. Matlab: the software interface. - Command window - Command history - Section help - Current

More information