Getting Started in Matlab
|
|
- Brittany Armstrong
- 6 years ago
- Views:
Transcription
1 Lesson 1: Getting Started in Matlab 1.1 Applied Problem. Heat transfer in a mass is very important for a number of objects such as cooling of electronic parts or the fabrication of large beams. Although this process can be very complicated, we can study it for a simple case. Consider a cooling cup of coffee, which is well stirred so that it has a uniform temperature. We would like to predict the temperature for any future time, or we may want to know the time when the temperature reaches a certain value. 1.2 Differential Equation Model. The continuous model for changing temperature is more realistic because the temperature does change at any instant in time. Here y(t) is viewed as a continuous function of time, t, and y(t) is the temperature at time t. Newton's empirical law of cooling gives an expression for the change in the temperature, which is proportional to the product of the change in time, dt = h, and the difference between the surrounding temperature, ysur, and the temperature of the cooling mass, y(t), y(t + dt) - y(t) dt*c*(ysur - y(t)). The proportionality constant, c, reflects how well the cup is insulated. Now the temperature will change a little as t moves from t to t+dt, and this is the reason we do not have an equality sign for the above change in temperature. If we let dt go to zero, we just get zero on both sides! However, if we divide by dt and let dt go to zero, we get the differential equation
2 2 y = c(ysur y) This differential equation with known c and given initial condition y(0) = y 0 is the continuous model. Continuous Version of Newton s Law of Cooling. Let y(t) be the temperature at time t. y = c(ysur y) and y(0) = y Method of Solution. The solution for the continuous model can be generated by the substitution z = ysur y. For example, consider y' = (1/26)( y) and y(0) = 200. The solution can be found by letting z = y to get -z' = (1/26)z and z(0) = = So, z(t) = -130e (-t/26) and y(t) = e (-t/26). We will use Matlab to generate a table with two columns, and the corresponding graph. The first column will have time values and the second column will have temperature values. These columns are also called arrays or vectors or matrices. As we shall see Matlab (matrix laboratory) is very good at matrix manipulations. 1.4 Matlab Implementation. In this section we will start Matlab and learn some commands for array operations, loops for repeated calculations, the plot command for graphing, and to create m-files for function evaluation and for combining commands into one file.
3 3 There are a number of ways to start Matlab. From the NCSU eos prompt you can start Matlab by the commands add matlab matlab. Or, you can center click the mouse while the cursor is on the background, then select math/stat button and choose Matlab. If you are using at win/mac operating system, just click the Matlab icon (a surface over an L shapped region). The following are some Matlab commands, and you should duplicate these. diary getstarted a = [3 4] % Creates a file called getstarted % Defines a 1x2 array. a = 3 4 b = 2*a % Defines a new 1x2 array. b = 6 8 c = a + b % Adds two 1x2 arrays. c = 9 12 d = a.*a % Defines a new 1x2 array via "array product". d = 9 16 e = a' % Defines a new 2x1 array via "transpose". e = 3 4 f = a'*a % Defines a 2x2 array via "matrix product". f =
4 g = a*a' % Defines an 1x1 via "matrix product". g = 25 aa = [a b] % Defines a 4x1 array via two 2x1 arrays. aa = plot(aa) % Plots aa versus [ ]. print % Prints the plot to your local printer. whos % Lists all your variables Name Size Bytes Class a 1x2 16 double array aa 1x4 32 double array b 1x2 16 double array c 1x2 16 double array d 1x2 16 double array e 2x1 16 double array f 2x2 32 double array g 1x1 8 double array Grand total is 19 elements using 152 bytes help diary % The help command is very useful. DIARY Save text of MATLAB session. DIARY file_name causes a copy of all subsequent terminal input and most of the resulting output to be written on the named file. DIARY OFF suspends it. DIARY ON turns it back on. DIARY, by itself, toggles the diary state. Use the functional form of DIARY, such as DIARY('file'), when the file name is stored in a string. diary off The following commands can be used to create a table of times and temperatures. First, we can create a function m-file so that we can easily compute the temperature, y(t) = e (-t/26). Use an eos editor such as Visual Slick or the Matlab editor to create and save the following two line m-file called temp.m
5 5 function temp = temp(t) temp = *exp(-t/26); Now the temperature function can be easily evaluated: EDU» temp(1) ans = EDU» temp(2) ans = EDU» temp(50) ans = EDU» temp(100) ans = In order to evaluate the temperature function for a large number of times, we can use the for command to generate a "loop": EDU» clear; % This clears the memory. EDU» for i = 0:50 % This starts the loop from time = 0 to 50. time(i+1) = i; y(i+1) = temp(i); end EDU» whos % Checks to see if the two rows were generated. Name Size Bytes Class i 1x1 8 double array time 1x double array y 1x double array Grand total is 103 elements using 824 bytes EDU» plot(time,y) % Plots the graph and inserts title and labels. EDU» title('lesson 1, your name, your student number') EDU» xlabel('time') EDU» ylabel('temperature')
6 6 200 Lesson 1, your name, your student number temperature time The above sequence of commands can be put into a single m-file so that one can easily experiment with different parameters in the model. Create and save the following 10 line file as cooling.m % Lesson 1, your name, your student number clear; % This clears the memory. for i = 0:50 % This starts the loop from time = 0 to 50. time(i+1) = i; y(i+1) = temp(i); end plot(time,y) % Plots the graph and inserts title and labels. title('lesson 1, your name, your student number') xlabel('time') ylabel('temperature') Now the above calculations can be executed by a single command at the Matlab prompt by just typing cooling. Try this.
7 7 1.5 Numerical Experiments. In order to evaluate a slightly different temperature function y(t) = e (-t/26), simply change the 130 in the temp.m file to 140, save the new temp.m file, and type cooling at the Matlab prompt. Notice now the initial temperature is equal to 210 and not Lesson 1, your name, your student number temperature time
8 8 The next graph is over a longer time interval from time equal 0 to 100. This was created by changing the 50 in the cooling.m file to 100, saving the new cooling.m file, and typing cooling at the Matlab prompt. Notice the temperature at time equal to 100 is near 70, the surrounding temperature. 220 Lesson 1, your name, your student number 200 t e m p e r a t u r e time
9 9 1.6 Additional Calculations. Keep the proportionality constant c = 1/26 and the initial temperature at y(0) = 200. Suppose the surrounding temperature is *(.S) where S is your student number so that the surrounding temperature is between 70 and 80. (a). (b). (c). Find the new temperature function. Modify the temp.m file. Insert your name and student number into cooling.m. Execute the code in the cooling.m file. (d). Print the temp.m and cooling.m files as well as the graph.
Chill Out: How Hot Objects Cool
Chill Out: How Hot Objects Cool Activity 17 When you have a hot drink, you know that it gradually cools off. Newton s law of cooling provides us with a model for cooling. It states that the temperature
More informationFall 2015 Math 337. Basic MatLab
Fall 215 Math 337 Basic MatLab MatLab is a powerful software created by MathWorks, which is used extensively in mathematics, engineering, and the sciences. It has powerful numerical and graphic capabilities,
More informationCreates a 1 X 1 matrix (scalar) with a value of 1 in the column 1, row 1 position and prints the matrix aaa in the command window.
EE 350L: Signals and Transforms Lab Spring 2007 Lab #1 - Introduction to MATLAB Lab Handout Matlab Software: Matlab will be the analytical tool used in the signals lab. The laboratory has network licenses
More informationIntroduction to MATLAB
CHEE MATLAB Tutorial Introduction to MATLAB Introduction In this tutorial, you will learn how to enter matrices and perform some matrix operations using MATLAB. MATLAB is an interactive program for numerical
More informationA Brief Introduction to MATLAB
A Brief Introduction to MATLAB MATLAB (Matrix Laboratory) is an interactive software system for numerical computations and graphics. As the name suggests, MATLAB was first designed for matrix computations:
More informationTo see what directory your work is stored in, and the directory in which Matlab will look for files, type
Matlab Tutorial For Machine Dynamics, here s what you ll need to do: 1. Solve n equations in n unknowns (as in analytical velocity and acceleration calculations) - in Matlab, this is done using matrix
More informationIntroduction 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 informationAN INTRODUCTION TO MATLAB
AN INTRODUCTION TO MATLAB 1 Introduction MATLAB is a powerful mathematical tool used for a number of engineering applications such as communication engineering, digital signal processing, control engineering,
More informationIntroduction to Matlab. Summer School CEA-EDF-INRIA 2011 of Numerical Analysis
Introduction to Matlab 1 Outline What is Matlab? Matlab desktop & interface Scalar variables Vectors and matrices Exercise 1 Booleans Control structures File organization User defined functions Exercise
More informationModeling and Optimization of Real Systems
Modeling and Optimization of Real Systems CRC Seminar Presentation Fernando Garcia University of Notre Dame February 5, 2014 Fernando Garcia Modeling and Optimization of Real Systems 1 / 24 Motivation
More informationINTRODUCTION TO MATLAB, SIMULINK, AND THE COMMUNICATION TOOLBOX
INTRODUCTION TO MATLAB, SIMULINK, AND THE COMMUNICATION TOOLBOX 1) Objective The objective of this lab is to review how to access Matlab, Simulink, and the Communications Toolbox, and to become familiar
More informationSF1901 Probability Theory and Statistics: Autumn 2016 Lab 0 for TCOMK
Mathematical Statistics SF1901 Probability Theory and Statistics: Autumn 2016 Lab 0 for TCOMK 1 Preparation This computer exercise is a bit different from the other two, and has some overlap with computer
More information=.1( sin(2πx/24) y) y(0) = 70.
Differential Equations, Spring 2017 Computer Project 2, Due 11:30 am, Friday, March 10 The goal of this project is to implement the Euler Method and the Improved Euler Method, and to use these methods
More information17 USING THE EDITOR AND CREATING PROGRAMS AND FUNCTIONS
17 USING THE EDITOR AND CREATING PROGRAMS AND FUNCTIONS % Programs are kept in an m-file which is a series of commands kept in the file that is executed from MATLAB by typing the program (file) name from
More informationSession 3 Introduction to SIMULINK
Session 3 Introduction to SIMULINK Brian Daku Department of Electrical Engineering University of Saskatchewan email: daku@engr.usask.ca EE 290 Brian Daku Outline This section covers some basic concepts
More informationUNIVERSITI TEKNIKAL MALAYSIA MELAKA FAKULTI KEJURUTERAAN ELEKTRONIK DAN KEJURUTERAAN KOMPUTER
UNIVERSITI TEKNIKAL MALAYSIA MELAKA FAKULTI KEJURUTERAAN ELEKTRONIK DAN KEJURUTERAAN KOMPUTER FAKULTI KEJURUTERAAN ELEKTRONIK DAN KEJURUTERAAN KOMPUTER BENC 2113 DENC ECADD 2532 ECADD LAB SESSION 6/7 LAB
More informationMath 2250 MATLAB TUTORIAL Fall 2005
Math 2250 MATLAB TUTORIAL Fall 2005 Math Computer Lab The Mathematics Computer Lab is located in the T. Benny Rushing Mathematics Center (located underneath the plaza connecting JWB and LCB) room 155C.
More informationARRAY VARIABLES (ROW VECTORS)
11 ARRAY VARIABLES (ROW VECTORS) % Variables in addition to being singular valued can be set up as AN ARRAY of numbers. If we have an array variable as a row of numbers we call it a ROW VECTOR. You can
More informationIntroduction to MATLAB
Module 1 Introduction to MATLAB The purpose of this module 1 is to review MATLAB for those that have used it before, and to provide a brief introduction to MATLAB for those that have not used it before.
More informationStarting a New Matlab m.file. Matlab m.files. Matlab m.file Editor/Debugger. The clear all Command. Our Program So Far
Matlab m.files It is not very convenient to do work directly in the Matlab Command Line Window since: It is hard to remember what we typed. It is hard to edit. It all disappears when we close Matlab. Solution:
More informationMatlab Tutorial. Get familiar with MATLAB by using tutorials and demos found in MATLAB. You can click Start MATLAB Demos to start the help screen.
University of Illinois at Urbana-Champaign Department of Electrical and Computer Engineering ECE 298JA Fall 2015 Matlab Tutorial 1 Overview The goal of this tutorial is to help you get familiar with MATLAB
More informationECE Lesson Plan - Class 1 Fall, 2001
ECE 201 - Lesson Plan - Class 1 Fall, 2001 Software Development Philosophy Matrix-based numeric computation - MATrix LABoratory High-level programming language - Programming data type specification not
More informationA/D Converter. Sampling. Figure 1.1: Block Diagram of a DSP System
CHAPTER 1 INTRODUCTION Digital signal processing (DSP) technology has expanded at a rapid rate to include such diverse applications as CDs, DVDs, MP3 players, ipods, digital cameras, digital light processing
More informationMATLAB for beginners. KiJung Yoon, 1. 1 Center for Learning and Memory, University of Texas at Austin, Austin, TX 78712, USA
MATLAB for beginners KiJung Yoon, 1 1 Center for Learning and Memory, University of Texas at Austin, Austin, TX 78712, USA 1 MATLAB Tutorial I What is a matrix? 1) A way of representation for data (# of
More informationECE-205 Lab 1. Introduction to Simulink and Matlab
ECE-205 Lab 1 Introduction to Simulink and Matlab Throughout this lab we will focus on determining the behavior of a first order system written in the standard form dy( t) y( t) Kx( t) dt where xt () is
More informationMAT 275 Laboratory 3 Numerical Solutions by Euler and Improved Euler Methods (scalar equations)
MATLAB sessions: Laboratory 3 1 MAT 275 Laboratory 3 Numerical Solutions by Euler and Improved Euler Methods (scalar equations) In this session we look at basic numerical methods to help us understand
More informationMATLAB = MATrix LABoratory. Interactive system. Basic data element is an array that does not require dimensioning.
Introduction MATLAB = MATrix LABoratory Interactive system. Basic data element is an array that does not require dimensioning. Efficient computation of matrix and vector formulations (in terms of writing
More informationA = [1, 6; 78, 9] Note: everything is case-sensitive, so a and A are different. One enters the above matrix as
1 Matlab Primer The purpose of these notes is a step-by-step guide to solving simple optimization and root-finding problems in Matlab To begin, the basic object in Matlab is an array; in two dimensions,
More informationINTRODUCTION TO MATLAB
1 of 18 BEFORE YOU BEGIN PREREQUISITE LABS None EXPECTED KNOWLEDGE Algebra and fundamentals of linear algebra. EQUIPMENT None MATERIALS None OBJECTIVES INTRODUCTION TO MATLAB After completing this lab
More informationIntroduction to Octave/Matlab. Deployment of Telecommunication Infrastructures
Introduction to Octave/Matlab Deployment of Telecommunication Infrastructures 1 What is Octave? Software for numerical computations and graphics Particularly designed for matrix computations Solving equations,
More informationMATLAB/Octave Tutorial
University of Illinois at Urbana-Champaign Department of Electrical and Computer Engineering ECE 298JA Fall 2017 MATLAB/Octave Tutorial 1 Overview The goal of this tutorial is to help you get familiar
More informationWorkpackage 5 - Ordinary Differential Equations
Mathematics for I Workpackage 5 - Ordinary Differential Equations Introduction During this laboratory you will be introduced to some of Matlab s facilities for solving ordinary differential equations (ode).
More informationIntroduction to Scientific Computing with Matlab
Introduction to Scientific Computing with Matlab Matlab is an interactive system for numerical computations. It is widely used in universities and industry, and has many advantages over languages such
More informationGrace days can not be used for this assignment
CS513 Spring 19 Prof. Ron Matlab Assignment #0 Prepared by Narfi Stefansson Due January 30, 2019 Grace days can not be used for this assignment The Matlab assignments are not intended to be complete tutorials,
More informationIntroduction 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 informationFreeMat Tutorial. 3x + 4y 2z = 5 2x 5y + z = 8 x x + 3y = -1 xx
1 of 9 FreeMat Tutorial FreeMat is a general purpose matrix calculator. It allows you to enter matrices and then perform operations on them in the same way you would write the operations on paper. This
More informationMAT 275 Laboratory 3 Numerical Solutions by Euler and Improved Euler Methods (scalar equations)
MAT 275 Laboratory 3 Numerical Solutions by Euler and Improved Euler Methods (scalar equations) In this session we look at basic numerical methods to help us understand the fundamentals of numerical approximations.
More informationMatlab 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 informationAMS 27L LAB #2 Winter 2009
AMS 27L LAB #2 Winter 2009 Plots and Matrix Algebra in MATLAB Objectives: 1. To practice basic display methods 2. To learn how to program loops 3. To learn how to write m-files 1 Vectors Matlab handles
More informationTeaching Manual Math 2131
Math 2131 Linear Algebra Labs with MATLAB Math 2131 Linear algebra with Matlab Teaching Manual Math 2131 Contents Week 1 3 1 MATLAB Course Introduction 5 1.1 The MATLAB user interface...........................
More informationAssignment in The Finite Element Method, 2017
Assignment in The Finite Element Method, 2017 Division of Solid Mechanics The task is to write a finite element program and then use the program to analyse aspects of a surface mounted resistor. The problem
More informationMAT 275 Laboratory 1 Introduction to MATLAB
MATLAB sessions: Laboratory 1 1 MAT 275 Laboratory 1 Introduction to MATLAB MATLAB is a computer software commonly used in both education and industry to solve a wide range of problems. This Laboratory
More informationHere is a quick introduction to Matlab and a couple of its symbolic and control functions.
Some Matlab 1 Here is a quick introduction to Matlab and a couple of its symbolic and control functions. Matlab is an interpreted language. When you enter a command in the Command window, the line is executed
More informationMATLAB 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 informationMATLAB 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 informationA Short Tutorial on Matlab ( by T. Co, 2003,2004 )
A Short Tutorial on Matlab ( by T. Co, 2003,2004 ) Part I. BASICS I. Assigning Values to Variables, Vectors and Matrices Use the equality symbol, e.g. A=3 Variables are case sensitive: temperature is not
More informationBasic MATLAB. Getting MATLAB (for MIT students) Creating matrices and vectors. Some operation of matrices/vectors.
Basic MATLAB Getting MATLAB (for MIT students) http://web.mit.edu/matlab/www/home.html Creating matrices and vectors >> rowvector = [0 20] rowvector = 0 20 >> columnvector = [0; 20] columnvector = 0 20
More informationAn Introduction to MATLAB See Chapter 1 of Gilat
1 An Introduction to MATLAB See Chapter 1 of Gilat Kipp Martin University of Chicago Booth School of Business January 25, 2012 Outline The MATLAB IDE MATLAB is an acronym for Matrix Laboratory. It was
More informationMatlab (Matrix laboratory) is an interactive software system for numerical computations and graphics.
Matlab (Matrix laboratory) is an interactive software system for numerical computations and graphics. Starting MATLAB - On a PC, double click the MATLAB icon - On a LINUX/UNIX machine, enter the command:
More informationFLORIDA INTERNATIONAL UNIVERSITY EEL-6681 FUZZY SYSTEMS
FLORIDA INTERNATIONAL UNIVERSITY DEPARTMENT OF ELECTRICAL AND COMPUTER ENGINEERING EEL-6681 FUZZY SYSTEMS A Practical Guide to Model Fuzzy Inference Systems using MATLAB and Simulink By Pablo Gomez Miami,
More informationMATLAB BASICS. < Any system: Enter quit at Matlab prompt < PC/Windows: Close command window < To interrupt execution: Enter Ctrl-c.
MATLAB BASICS Starting Matlab < PC: Desktop icon or Start menu item < UNIX: Enter matlab at operating system prompt < Others: Might need to execute from a menu somewhere Entering Matlab commands < Matlab
More informationMath 5BI: Problem Set 2 The Chain Rule
Math 5BI: Problem Set 2 The Chain Rule April 5, 2010 A Functions of two variables Suppose that γ(t) = (x(t), y(t), z(t)) is a differentiable parametrized curve in R 3 which lies on the surface S defined
More informationAMATH 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 informationIntroduction to. The Help System. Variable and Memory Management. Matrices Generation. Interactive Calculations. Vectors and Matrices
Introduction to Interactive Calculations Matlab is interactive, no need to declare variables >> 2+3*4/2 >> V = 50 >> V + 2 >> V Ans = 52 >> a=5e-3; b=1; a+b Most elementary functions and constants are
More informationMath Scientific Computing - Matlab Intro and Exercises: Spring 2003
Math 64 - Scientific Computing - Matlab Intro and Exercises: Spring 2003 Professor: L.G. de Pillis Time: TTh :5pm 2:30pm Location: Olin B43 February 3, 2003 Matlab Introduction On the Linux workstations,
More informationLab 1 Intro to MATLAB and FreeMat
Lab 1 Intro to MATLAB and FreeMat Objectives concepts 1. Variables, vectors, and arrays 2. Plotting data 3. Script files skills 1. Use MATLAB to solve homework problems 2. Plot lab data and mathematical
More informationIntroduction to MATLAB
Introduction to MATLAB Introduction MATLAB is an interactive package for numerical analysis, matrix computation, control system design, and linear system analysis and design available on most CAEN platforms
More informationAttia, John Okyere. Control Statements. Electronics and Circuit Analysis using MATLAB. Ed. John Okyere Attia Boca Raton: CRC Press LLC, 1999
Attia, John Okyere. Control Statements. Electronics and Circuit Analysis using MATLAB. Ed. John Okyere Attia Boca Raton: CRC Press LLC, 1999 1999 by CRC PRESS LLC CHAPTER THREE CONTROL STATEMENTS 3.1 FOR
More informationComputer Project: Getting Started with MATLAB
Computer Project: Getting Started with MATLAB Name Purpose: To learn to create matrices and use various MATLAB commands. Examples here can be useful for reference later. MATLAB functions: [ ] : ; + - *
More informationLab of COMP 406. MATLAB: Quick Start. Lab tutor : Gene Yu Zhao Mailbox: or Lab 1: 11th Sep, 2013
Lab of COMP 406 MATLAB: Quick Start Lab tutor : Gene Yu Zhao Mailbox: csyuzhao@comp.polyu.edu.hk or genexinvivian@gmail.com Lab 1: 11th Sep, 2013 1 Where is Matlab? Find the Matlab under the folder 1.
More informationGetting Started with MATLAB
Getting Started with MATLAB Math 315, Fall 2003 Matlab is an interactive system for numerical computations. It is widely used in universities and industry, and has many advantages over languages such as
More informationLAB 2: Linear Equations and Matrix Algebra. Preliminaries
Math 250C, Section C2 Hard copy submission Matlab # 2 1 Revised 07/13/2016 LAB 2: Linear Equations and Matrix Algebra In this lab you will use Matlab to study the following topics: Solving a system of
More informationFiles and File Management Scripts Logical Operations Conditional Statements
Files and File Management Scripts Logical Operations Conditional Statements Files and File Management Matlab provides a group of commands to manage user files pwd: Print working directory displays the
More informationTHE UNIVERSITY OF COLORADO BOULDER
BrainBLOX Software ReadMe The Neuromechanics Laboratory THE UNIVERSITY OF COLORADO BOULDER BRAINBLOX Software ReadMe Documentation Abstract This software, developed initially in the Department of Integrative
More informationHow to Use MATLAB. What is MATLAB. Getting Started. Online Help. General Purpose Commands
How to Use MATLAB What is MATLAB MATLAB is an interactive package for numerical analysis, matrix computation, control system design and linear system analysis and design. On the server bass, MATLAB version
More informationMAT 343 Laboratory 1 Matrix and Vector Computations in MATLAB
MAT 343 Laboratory 1 Matrix and Vector Computations in MATLAB In this laboratory session we will learn how to 1. Create matrices and vectors. 2. Manipulate matrices and create matrices of special types
More informationLABQUEST 2 DATA LOGGER
Page 29 LABQUEST 2 DATA LOGGER OBJECTIVES: 1. To introduce the fundamentals of the use of the LabQuest 2 data logger. 2. To illustrate the use of Logger Pro graphing software to graph and analyze data
More informationPolymath 6. Overview
Polymath 6 Overview Main Polymath Menu LEQ: Linear Equations Solver. Enter (in matrix form) and solve a new system of simultaneous linear equations. NLE: Nonlinear Equations Solver. Enter and solve a new
More informationLaboratory 1 Introduction to MATLAB for Signals and Systems
Laboratory 1 Introduction to MATLAB for Signals and Systems INTRODUCTION to MATLAB MATLAB is a powerful computing environment for numeric computation and visualization. MATLAB is designed for ease of use
More informationAMS 27L LAB #1 Winter 2009
AMS 27L LAB #1 Winter 2009 Introduction to MATLAB Objectives: 1. To introduce the use of the MATLAB software package 2. To learn elementary mathematics in MATLAB Getting Started: Log onto your machine
More informationECON 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 informationCITS2401 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 informationQuick Start with CASSY Lab. Bi-05-05
Quick Start with CASSY Lab Bi-05-05 About this manual This manual helps you getting started with the CASSY system. The manual does provide you the information you need to start quickly a simple CASSY experiment
More informationEE 301 Signals & Systems I MATLAB Tutorial with Questions
EE 301 Signals & Systems I MATLAB Tutorial with Questions Under the content of the course EE-301, this semester, some MATLAB questions will be assigned in addition to the usual theoretical questions. This
More informationMINIMAT TUTORIAL Joel Robbin June 92
MINIMAT TUTORIAL Joel Robbin June 92 The purpose of this tutorial is to give you a feeling for how MINIMAT interacts with the user and what it can do. The tutorial is not intended to be a definitive account
More information%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% MATLAB DEMO %% Basic Matlab commands %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%% %% MATLAB DEMO 5-30-2013 %% Basic Matlab commands %%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%% %% diary command %%%%%%%%%%%%%%%%%%%%%%%%%% help diary DIARY Save text of MATLAB session. DIARY FILENAME causes
More informationLab. Manual. Practical Special Topics (Matlab Programming) (EngE416) Prepared By Dr. Emad Saeid
KINGDOM OF SAUDI ARABIA JAZAN UNIVERSTY College of Engineering Electrical Engineering Department المملكة العربية السعودية وزارة التعليم العالي جامعة جازان كلية الھندسة قسم الھندسة الكھربائية Lab. Manual
More informationGetting 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 informationLabview. Masood Ejaz
Labview A Tutorial By Masood Ejaz Note: This tutorial is a work in progress and written specially for CET 3464 Software Applications in Engineering Technology, a course offered as part of BSECET program
More informationMATLAB An introductory tutorial
MATLAB An introductory tutorial By Carin Nilsson Dept. of Physical Geography and Ecosystems Analysis (taken from the tutorials for course NGE604 Climate Systems) And Chantal Donnelly (Dept. of Water Resources
More informationInlichtingenblad, matlab- en simulink handleiding en practicumopgaven IWS
Inlichtingenblad, matlab- en simulink handleiding en practicumopgaven IWS 4 SIMULINK 4 Simulink 4 Quick introduction General information Simulink is an etension of Matlab software for simulating dynamic
More informationSolving General Linear Equations w/ Excel
Solving General Linear Equations w/ Ecel Matri Operations in Ecel Ecel has commands for: Multiplication (mmult) matri multiplication Transpose (transpose) transpose a matri Determinant (mdeterm) calc the
More informationChapter 1 Introduction to MATLAB
EGR115 Introduction to Computing for Engineers Introduction to MATLAB from: S.J. Chapman, MATLAB Programming for Engineers, 5 th Ed. 2016 Cengage Learning Topics Introduction: Computing for Engineers 1.1
More informationTopic 5.1: Line Elements and Scalar Line Integrals. Textbook: Section 16.2
Topic 5.1: Line Elements and Scalar Line Integrals Textbook: Section 16.2 Warm-Up: Derivatives of Vector Functions Suppose r(t) = x(t) î + y(t) ĵ + z(t) ˆk parameterizes a curve C. The vector: is: r (t)
More informationMATLAB: The Basics. Dmitry Adamskiy 9 November 2011
MATLAB: The Basics Dmitry Adamskiy adamskiy@cs.rhul.ac.uk 9 November 2011 1 Starting Up MATLAB Windows users: Start up MATLAB by double clicking on the MATLAB icon. Unix/Linux users: Start up by typing
More informationThe value of f(t) at t = 0 is the first element of the vector and is obtained by
MATLAB Tutorial This tutorial will give an overview of MATLAB commands and functions that you will need in ECE 366. 1. Getting Started: Your first job is to make a directory to save your work in. Unix
More informationVariable 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 informationUniversity of Alberta
A Brief Introduction to MATLAB University of Alberta M.G. Lipsett 2008 MATLAB is an interactive program for numerical computation and data visualization, used extensively by engineers for analysis of systems.
More informationPractice to Informatics for Energy and Environment
Practice to Informatics for Energy and Environment Part 3: Finite Elemente Method Example 1: 2-D Domain with Heat Conduction Tutorial by Cornell University https://confluence.cornell.edu/display/simulation/ansys+-+2d+steady+conduction
More informationPART 1 PROGRAMMING WITH MATHLAB
PART 1 PROGRAMMING WITH MATHLAB Presenter: Dr. Zalilah Sharer 2018 School of Chemical and Energy Engineering Universiti Teknologi Malaysia 23 September 2018 Programming with MATHLAB MATLAB Environment
More informationIntroduction to MATLAB
Introduction to MATLAB Contents 1.1 Objectives... 1 1.2 Lab Requirement... 1 1.3 Background of MATLAB... 1 1.4 The MATLAB System... 1 1.5 Start of MATLAB... 3 1.6 Working Modes of MATLAB... 4 1.7 Basic
More informationSIMULINK A Tutorial by Tom Nguyen
Introduction SIMULINK A Tutorial by Tom Nguyen Simulink (Simulation and Link) is an extension of MATLAB by Mathworks Inc. It works with MATLAB to offer modeling, simulating, and analyzing of dynamical
More informationKINETICS CALCS AND GRAPHS INSTRUCTIONS
KINETICS CALCS AND GRAPHS INSTRUCTIONS 1. Open a new Excel or Google Sheets document. I will be using Google Sheets for this tutorial, but Excel is nearly the same. 2. Enter headings across the top as
More informationGalileo s Investigation
Galileo s Investigation Investigating Angle of Incline Teacher s Guide The activity worksheets 1 Teachers Guide to Galileo s Experiment Check the car s bluetooth dongle is inserted in the PC/laptop and
More informationAppendix A. HINTS WHEN USING EXCEL w
Appendix A HINTS WHEN USING EXCEL w This appendix provides hints when using Microsoft Excel. Appendix A includes general features that are useful in all the applications solved with Excel in this book.
More informationMATLAB. 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 informationChapter 1: An Overview of MATLAB
Chapter 1: An Overview of MATLAB MATLAB is: A high-level language and interactive environment for numerical computation, visualization, and programming MATLAB can: Be used as a calculator, easily create
More information(1) Generate 1000 samples of length 1000 drawn from the uniform distribution on the interval [0, 1].
PRACTICAL EXAMPLES: SET 1 (1) Generate 1000 samples of length 1000 drawn from the uniform distribution on the interval [0, 1]. >> T=rand(1000,1000); The command above generates a matrix, whose columns
More informationComputer Packet 1 Row Operations + Freemat
Computer Packet 1 Row Operations + Freemat For this packet, you will use a website to do row operations, and then learn to use a general purpose matrix calculator called FreeMat. To reach the row operations
More informationEric W. Hansen. The basic data type is a matrix This is the basic paradigm for computation with MATLAB, and the key to its power. Here s an example:
Using MATLAB for Stochastic Simulation. Eric W. Hansen. Matlab Basics Introduction MATLAB (MATrix LABoratory) is a software package designed for efficient, reliable numerical computing. Using MATLAB greatly
More information