Introduction to MatLab
|
|
- James Armstrong
- 6 years ago
- Views:
Transcription
1 Introduction to MatLab 1 Introduction to MatLab Graduiertenkolleg Kognitive Neurobiologie Friday, 05 November 2004 Thuseday, 09 Novemer 2004 Kurt Bräuer Institut für Theoretische Physik, Universität Tübingen kurt.braeuer@uni-tuebingen.de, web: Skript: - Graduiertenkolleg Kognitive Neurobiologie
2 2
3 Introduction to MatLab 3 Content 1. Starting MatLab Workspace and m-files Help Vectors and matrices Objects Plots Statistics Data import and export Appendix (Plots and Codes)...19
4 4
5 Introduction to MatLab 5 1. Starting MatLab Possibility 1 Possibility 2 Double-click the MatLab shortcut icon on your Windows desktop. >>cd 'work directory' >>edit explorer -> work directory create a new m-file click a 'm-file' with right mouse button open with, select program matlab.exe, activate 'open always with this program' double-click m-file (opens MatLab in the work directory) >>edit
6 6 2. Workspace and m-files ( a ) >> a = 5 stores value 5 in variable, prints result in workspace 5 ( a ) ( prints value of variable a in workspace) >> a = 5; stores value 5 in variable >> a 5 >> >> t = ' hello world '; >> t ' hello world ' >> whos variable list ( opens editor with m-file ) ( calls function in m-file test) >> edit test test >> test example: our first MatLab program workspace editor >> edit test function test ' hello world ' F5 hello world Exercise Open MatLab Create a new m-file with name 'first' Type the program lines x = 1:20 (,sin( * /5)) plot x x pi
7 Introduction to MatLab 7 3. Help Examples for workspace help Examples for MatLab help menu >> help function >> help if >> help for >> help switch >> help whos Click with left mouse buttom: Menu Contents Using MatLab Mathematics - help by Contents Index Search
8 8 4. Vectors and matrices ( 3) >> x = a 0 0 a abcd,,, are numbers b a b a N 1 N 1 b a b a (Integer, Real, π,e,i, >> x= a: d: b a a+ d a+ 2d b-d b x 3 a+ 2d >> x= a: b a a+ 1 a+ 2 >> x= [ a b c d] a b c d >> x= linspace( abn,, ) a a+ b b n elements >> x= linspace( ab, ) a a+ b b 100 elementes >> A= [1 2 3; 4 5 6] ; ( 2,1) A x N 2 >> A= [ x ; y ] xy, R A R R Vektor y Vektor >> A= [ x y ] x y x R, y R A R ( ) Vektor Vektor x N N >> A= [ x' y' ] ( x' y' ) = xy, R A R R y N N Scalar produkt: >> x* y' = xy n n R, R R n >> A* x' = Amnxn R R, R R n ' M N N M ( ) M N M+ N >> A* B = AmnBnk R R, R R R R n ( ( n n) ) ( ) Point produkt: >> x.* y = xy R, R R ( ) M N N K M K N N N >> A.* B = A B R R, R R R R mn mn 2 ( ( n )) ( ( sin mn )) N functions: >> x.^2 = x R R Exercise ( ) ( ) M N M N M N >> sin A = A R R R R a) Which function is evaluated by N M N M N f = prod( 1: N) (>>'help prod' shows the definition and examples for 'prod') N 2
9 Introduction to MatLab 9 b) Study the results of the commands >> N = ones ( 6) prod ( N,2) ( ( 6,: ), ',' ') (' N' ) (' f ') (' 1' ) ( ) >> for n= 1:6, N n,1: n = 1: n; end >> N >> f = >> plot N f b >> xlabel >> ylabel >> title Test >> whos c) Use A= and B = ci) Calculate the determinant of A (Menu help: MatLab - Using MatLab Matrices and linear algebra Inverses ) cii) Solve the linear system Ax= B (Menu help: MatLab - Using MatLab Matrices and linear algebra Solving linear )
10 10 5. Objects >> hnd = text 0,0,'hello world' x and y Position >> hnd=text(0,0,'hello world') hnd = >> get(hnd) Color = [0 0 0] EraseMode = normal Editing = off Extent = [ ] FontAngle = normal FontName = Helvetica FontSize = [10] FontUnits = points FontWeight = normal HorizontalAlignment = left Position = [0 0 0] Rotation = [0] String = hello world Units = data Interpreter = tex VerticalAlignment = middle BeingDeleted = off ButtonDownFcn = Children = [] Clipping = off CreateFcn = DeleteFcn = BusyAction = queue HandleVisibility = on HitTest = on Interruptible = on Parent = [ ] Selected = off SelectionHighlight = on Tag = Type = text UIContextMenu = [] UserData = [] Visible = on Get possibile properties: >> set( hnd,'horizontalalignment' ) [ {left} center right ] Set possibile properties: >> set( hnd,' HorizontalAlignment',' center',' FontSize',25)
11 Introduction to MatLab 11 Exercise a) Rotate the string 'hello world' by 180 degrees (Rotation is a property of the object 'text'. b) Type in the command >> h= plot ([ 1 0 1,0 ] [ 1 0] ) bi) What different line styles are possible bii) Change the line style and the line width biii) change the y-data to [ ]
12 12 6. Plots >>help plot >> x = linspace(0,2* pi); >> >> >> x = plot x >> y = >> (,sin ( x) ),sin( ) (,' :') plot x x b [ ; ].5*[ ; ] (,,' y' ) or fill( x, y,' y' ) ( Hnd is 'handle' for object) ( ) ( shows object properties) (,' ',' ',' ',10) ( changes object properties) fill x y >> Hnd = >> get Hnd >> set Hnd EdgeColor r LineWidth >> subplot n, m, k rows columns PlotNo >> hold >> hold on off ( overdraw ) ( delete old objects when drawing a new one) >> try, delete( 1, ) end ( delete grafik window 1)
13 Introduction to MatLab 13 Curve fitting Data: ( ) ( ) x= x x x y= y y y fit: 1 2 N Y = a+ bx + cx. N get a, b and c with MatLab:\
14 14 a y' = ( 1 x' ( x.^2 )') b = M c = A A= M \ y' Y = M* A Exercise Create a new m-file 'Plot1' Create the time series t=0..10,y=exp(at) with N elements; Reproduce the plots of Plot1 in the appendix If you don't know how to proceed, look into the program file (after the figure) Use the desktop help and the help menu to get an understanding of the statements
15 Introduction to MatLab Statistics Matlab help page: 'Using Matlab Mathematics Data analysis and statistics' Define an own statistic functions Example: Lineare correlation, r-value We consider two measured quantities The r-value is defind by ( x, y ) i { 1.. N } (7-1) i i Dat
16 16 { } { 1.. N } i ( ) ( xi x)( yi y) i i 1.. N i 1.. N { } ( ) 2 2 [ ] Dat r = 1,1. Dat x x y y Dat i (7-2) It is a measure for the linear correlation between the two measured quantities. Three examples for r-values. The closer the data pairs (x I,y i ) lie on a line the closer is the r-value to 1. MatLab formulation ( ) ( ) ( ) N = 10; Generte a data x= 1: N; y= rand(1, N); ( ) x1 = mean x ; Define r-value y1 = mean y; r = sum(( x- x1).*( y- y1))/... ( sqrt( sum(( x-x1).^2))*... sqrt( sum(( y-y1).^2))); Fig. 7-1 Exercise Create a new m-file 'Stat1' Reproduce the plots of Stat1 in the appendix If you don't know how to proceed, look into the program file (after the figure) Use the desktop help and the help menu to get an understanding of the statements
17 Introduction to MatLab Data import and export Matlab help: 'Using matlab Development environment Importing and exporting -
18 18 Write time series in readable format to file 'TimeSeries.txt' ( ) N = 2^8; Generate time series x= 10* linspace(0,2* pi, N); c= (2*mod(2: N + 1,2)-1).*exp(-.5*(1: N)); y= c*sin((1: N)'* x); Y f _ hnd = fopen(' TimeSeriestxt. ',' w'); for n= 1: length( x) fprintf ( f _ hnd,'%10.5 f; %10.5 f; %10.5 f \ n',... ( ) ( Out to file) = fft( y) Fast Fourier transformation end xn ( ), y( n), Y( n)) fclose( f _ hnd) Exercise Write the Data in m-file 'Stat1' into TimeSeries.Txt Create a new m-file 'ReadSeries.m' Write a code to read the data from TimeSeries.Txt and display them in a diagram Further exercises Create new m-files 'Plot2' and 'Plot3' Reproduce the plots in the appendix
19 Introduction to MatLab 19 Plot 1 9. Appendix (Plots and Codes)
20 20
21 Introduction to MatLab 21
22 22 Statistics 1
23 Introduction to MatLab 23
24 24 Plot 2
25 Introduction to MatLab 25 Plot 3
26 Supplementation Exercise (Fit of arbitrary functions) Create a 'random exponential function' by ( ( ( N) )) y= exp 3sort ran 1: Approximate this function by z = α e β x Tipp: Approximate ( ) ( ) you can display ( ) ( ) y x = log y x by z x = α+ βx. Its an easy way to get a and b. The z = α e β x.
27 Introduction to MatLab 27
An Introduction to MatLab
Introduction to MatLab 1 An Introduction to MatLab Contents 1. Starting MatLab... 3 2. Workspace and m-files... 4 3. Help... 5 4. Vectors and Matrices... 5 5. Objects... 8 6. Plots... 10 7. Statistics...
More informationPhysics 241 Class #10 Outline (9/25/2013) Plotting Handle graphics Numerical derivatives and functions Next time numerical integrals
Physics 241 Class #10 Outline (9/25/2013) Plotting Handle graphics Numerical derivatives and functions Next time numerical integrals Announcements HW4 grades are up. HW5a HW5 revised Same problems, now
More informationMATLAB BASICS. Instructor: Prof. Shahrouk Ahmadi. TA: Kartik Bulusu
MATLAB BASICS Instructor: Prof. Shahrouk Ahmadi 1. What are M-files TA: Kartik Bulusu M-files are files that contain a collection of MATLAB commands or are used to define new MATLAB functions. For the
More informationHomework 1 Solutions
18-9 Signals and Systems Profs. Byron Yu and Pulkit Grover Fall 18 Homework 1 Solutions Part One 1. (8 points) Consider the DT signal given by the algorithm: x[] = 1 x[1] = x[n] = x[n 1] x[n ] (a) Plot
More informationL3: Review of linear algebra and MATLAB
L3: Review of linear algebra and MATLAB Vector and matrix notation Vectors Matrices Vector spaces Linear transformations Eigenvalues and eigenvectors MATLAB primer CSCE 666 Pattern Analysis Ricardo Gutierrez-Osuna
More informationEEE161 Applied Electromagnetics Laboratory 1
Dr. Milica Marković Applied Electromagnetics Laboratory page 1 EEE161 Applied Electromagnetics Laboratory 1 Instructor: Dr. Milica Marković Office: Riverside Hall 3028 Email: milica@csus.edu Web:http://gaia.ecs.csus.edu/
More informationStatistical methods. Mean value and standard deviations Standard statistical distributions Linear systems Matrix algebra
Statistical methods Mean value and standard deviations Standard statistical distributions Linear systems Matrix algebra Statistical methods Generating random numbers MATLAB has many built-in functions
More informationNew Mexico Tech Hyd 510
Vectors vector - has magnitude and direction (e.g. velocity, specific discharge, hydraulic gradient) scalar - has magnitude only (e.g. porosity, specific yield, storage coefficient) unit vector - a unit
More informationBayesian Analysis - A First Example
Bayesian Analysis - A First Example This script works through the example in Hoff (29), section 1.2.1 We are interested in a single parameter: θ, the fraction of individuals in a city population with with
More informationMath Assignment 3 - Linear Algebra
Math 216 - Assignment 3 - Linear Algebra Due: Tuesday, March 27. Nothing accepted after Thursday, March 29. This is worth 15 points. 10% points off for being late. You may work by yourself or in pairs.
More informationLecture 4. Programming
Lecture 4 Advanced Matlab Programming Announcements Hands-on Session on Friday 1318 EB Read Chapters 3-6 in your MATLAB book HW 2 opens up Friday evening Today Numerical analysis - I Visualization I Some
More informationLab 2: Static Response, Cantilevered Beam
Contents 1 Lab 2: Static Response, Cantilevered Beam 3 1.1 Objectives.......................................... 3 1.2 Scalars, Vectors and Matrices (Allen Downey)...................... 3 1.2.1 Attribution.....................................
More information(Linear equations) Applied Linear Algebra in Geoscience Using MATLAB
Applied Linear Algebra in Geoscience Using MATLAB (Linear equations) Contents Getting Started Creating Arrays Mathematical Operations with Arrays Using Script Files and Managing Data Two-Dimensional Plots
More informationLinear Algebra Using MATLAB
Linear Algebra Using MATLAB MATH 5331 1 May 12, 2010 1 Selected material from the text Linear Algebra and Differential Equations Using MATLAB by Martin Golubitsky and Michael Dellnitz Contents 1 Preliminaries
More informationNumerical solution of ODEs
Péter Nagy, Csaba Hős 2015. H-1111, Budapest, Műegyetem rkp. 3. D building. 3 rd floor Tel: 00 36 1 463 16 80 Fax: 00 36 1 463 30 91 www.hds.bme.hu Table of contents Homework Introduction to Matlab programming
More informationLab 1: Dynamic Simulation Using Simulink and Matlab
Lab 1: Dynamic Simulation Using Simulink and Matlab Objectives In this lab you will learn how to use a program called Simulink to simulate dynamic systems. Simulink runs under Matlab and uses block diagrams
More informationJanuary 18, 2008 Steve Gu. Reference: Eta Kappa Nu, UCLA Iota Gamma Chapter, Introduction to MATLAB,
Introduction to MATLAB January 18, 2008 Steve Gu Reference: Eta Kappa Nu, UCLA Iota Gamma Chapter, Introduction to MATLAB, Part I: Basics MATLAB Environment Getting Help Variables Vectors, Matrices, and
More informationPhonon dispersion relation and density of states of a simple cubic lattice
Phonon dispersion relation and density of states of a simple cubic lattice Student project for the course Molecular and Solid State Physics by Eva Meisterhofer Contents 1 The linear spring model 3 1.1
More informationIntroduction to Computational Neuroscience
CSE2330 Introduction to Computational Neuroscience Basic computational tools and concepts Tutorial 1 Duration: two weeks 1.1 About this tutorial The objective of this tutorial is to introduce you to: the
More informationMATLAB crash course 1 / 27. MATLAB crash course. Cesar E. Tamayo Economics - Rutgers. September 27th, /27
1/27 MATLAB crash course 1 / 27 MATLAB crash course Cesar E. Tamayo Economics - Rutgers September 27th, 2013 2/27 MATLAB crash course 2 / 27 Program Program I Interface: layout, menus, help, etc.. I Vectors
More informationMatlab for Review. NDSU Matlab Review pg 1
NDSU Matlab Review pg 1 Becoming familiar with MATLAB The console The editor The graphics windows The help menu Saving your data (diary) General environment and the console Matlab for Review Simple numerical
More informationBUILDING BASICS WITH HYPERCHEM LITE
BUILDING BASICS WITH HYPERCHEM LITE LAB MOD1.COMP From Gannon University SIM INTRODUCTION A chemical bond is a link between atoms resulting from the mutual attraction of their nuclei for electrons. There
More information1-D Convection-Diffusion Lab
Computational Fluid Dynamics -D Convection-Diffusion Lab The lab. uses scientificworkplace symbolic calculus and maths editor software (SWP) This file Concevtion-Diffusion-Lab is available from Blackboard
More informationFin System, Inc. Company Report. Temperature Profile Calculators. Team 1 J. C. Stewards, Lead A. B. Williams, Documentation M. D.
Fin System, Inc. Company Report Temperature Profile Calculators Team 1 J. C. Stewards, Lead A. B. Williams, Documentation M. D. Daily, Programmer Submitted in Fulfillment of Management Requirements August
More information2D Plotting with Matlab
GEEN 1300 Introduction to Engineering Computing Class Meeting #22 Monday, Nov. 9 th Engineering Computing and Problem Solving with Matlab 2-D plotting with Matlab Script files User-defined functions Matlab
More informationLAB 1: MATLAB - Introduction to Programming. Objective:
LAB 1: MATLAB - Introduction to Programming Objective: The objective of this laboratory is to review how to use MATLAB as a programming tool and to review a classic analytical solution to a steady-state
More informationComputational Chemistry Lab Module: Conformational Analysis of Alkanes
Introduction Computational Chemistry Lab Module: Conformational Analysis of Alkanes In this experiment, we will use CAChe software package to model the conformations of butane, 2-methylbutane, and substituted
More informationAMS 27L LAB #8 Winter 2009
AMS 27L LAB #8 Winter 29 Solving ODE s in Matlab Objectives:. To use Matlab s ODE Solvers 2. To practice using functions and in-line functions Matlab s ODE Suite Matlab offers a suite of ODE solvers including:
More informationMatlab Section. November 8, 2005
Matlab Section November 8, 2005 1 1 General commands Clear all variables from memory : clear all Close all figure windows : close all Save a variable in.mat format : save filename name of variable Load
More informationENGR Spring Exam 2
ENGR 1300 Spring 013 Exam INSTRUCTIONS: Duration: 60 minutes Keep your eyes on your own work! Keep your work covered at all times! 1. Each student is responsible for following directions. Read carefully..
More informationVECTORS AND MATRICES
VECTORS AND MATRICES COMPUTER SESSION C1 BACKGROUND PREPARATIONS The session is divided into two parts. The first part involves experimenting in the Mathematics Laboratory and the second part involves
More informationSIGNALS AND LINEAR SYSTEMS LABORATORY EELE Experiment (2) Introduction to MATLAB - Part (2) Prepared by:
The Islamic University of Gaza Faculty of Engineering Electrical Engineering Department SIGNALS AND LINEAR SYSTEMS LABORATORY EELE 110 Experiment () Introduction to MATLAB - Part () Prepared by: Eng. Mohammed
More informationChapter 1 Linear Equations. 1.1 Systems of Linear Equations
Chapter Linear Equations. Systems of Linear Equations A linear equation in the n variables x, x 2,..., x n is one that can be expressed in the form a x + a 2 x 2 + + a n x n = b where a, a 2,..., a n and
More informationOKLAHOMA STATE UNIVERSITY
OKLAHOMA STATE UNIVERSITY ECEN 4413 - Automatic Control Systems Matlab Lecture 1 Introduction and Control Basics Presented by Moayed Daneshyari 1 What is Matlab? Invented by Cleve Moler in late 1970s to
More informationProject One: C Bump functions
Project One: C Bump functions James K. Peterson Department of Biological Sciences and Department of Mathematical Sciences Clemson University November 2, 2018 Outline 1 2 The Project Let s recall what the
More informationLAB # 5 HANDOUT. »»» The N-point DFT is converted into two DFTs each of N/2 points. N = -W N Then, the following formulas must be used. = k=0,...
EEE4 Lab Handout. FAST FOURIER TRANSFORM LAB # 5 HANDOUT Data Sequence A = x, x, x, x3, x4, x5, x6, x7»»» The N-point DFT is converted into two DFTs each of N/ points. x, x, x4, x6 x, x3, x5, x7»»» N =e
More informationLAB 2 - ONE DIMENSIONAL MOTION
Name Date Partners L02-1 LAB 2 - ONE DIMENSIONAL MOTION OBJECTIVES Slow and steady wins the race. Aesop s fable: The Hare and the Tortoise To learn how to use a motion detector and gain more familiarity
More informationThe additional parameters - a short introduction to the data handling with TRACKKEY 4.1
published in: OnTrack v. 11/1, 19-22 (2001) The additional parameters - a short introduction to the data handling with TRACKKEY 4.1 István Dunkl 1,2 istvan.dunkl@uni-tuebingen.de 1): Institut für Geologie
More informationIdentity Matrix: EDU> eye(3) ans = Matrix of Ones: EDU> ones(2,3) ans =
Very Basic MATLAB Peter J. Olver October, 2003 Matrices: Type your matrix as follows: Use, or space to separate entries, and ; or return after each row. EDU> [;5 0-3 6;; - 5 ] or EDU> [,5,6,-9;5,0,-3,6;7,8,5,0;-,,5,]
More information( a b) 4 (2) Powers If a is a non-zero real number, and p and q are integers then:- a p a q. ( a p ) q = a p q a p. a q. = a 1 2
Powers If a is a non-zero real number, and p and q are integers then:-.. 3. 4. 5. 6. a p a q a q a ( p+ q) ( a p ) q a p q a p a ( p q) a p a a p q a p a q a p Note: denominator everywhere does not equal
More informationProject 2: Using linear systems for numerical solution of boundary value problems
LINEAR ALGEBRA, MATH 124 Instructor: Dr. T.I. Lakoba Project 2: Using linear systems for numerical solution of boundary value problems Goal Introduce one of the most important applications of Linear Algebra
More informationGis Unit TropMed Mahidol U.
Gis Unit TropMed Mahidol U. Database Information System Database Concepts 1. Non-Spatial Database table, document.. 2. Spatial Database locational databases (geographic) + attribute databases Gis Unit
More informationMath 515 Fall, 2008 Homework 2, due Friday, September 26.
Math 515 Fall, 2008 Homework 2, due Friday, September 26 In this assignment you will write efficient MATLAB codes to solve least squares problems involving block structured matrices known as Kronecker
More informationAssignment 1b: due Tues Nov 3rd at 11:59pm
n Today s Lecture: n n Vectorized computation Introduction to graphics n Announcements:. n Assignment 1b: due Tues Nov 3rd at 11:59pm 1 Monte Carlo Approximation of π Throw N darts L L/2 Sq. area = N =
More informationINFE 5201 SIGNALS AND SYSTEMS
INFE 50 SIGNALS AND SYSTEMS Assignment : Introduction to MATLAB Name, Class&Student ID Aim. To give student an introduction to basic MATLAB concepts. You are required to produce basic program, learn basic
More informationIntroduction to MATLAB Practical 2
Introduction to MATLAB Practical 2 Daniel Carrera November 2016 1 Searching through data One of the most important skills in scientific computing is sorting through large datasets and extracting the information
More informationHow to Make or Plot a Graph or Chart in Excel
This is a complete video tutorial on How to Make or Plot a Graph or Chart in Excel. To make complex chart like Gantt Chart, you have know the basic principles of making a chart. Though I have used Excel
More informationFast Fourier Transform Discrete-time windowing Discrete Fourier Transform Relationship to DTFT Relationship to DTFS Zero padding
Fast Fourier Transform Discrete-time windowing Discrete Fourier Transform Relationship to DTFT Relationship to DTFS Zero padding Fourier Series & Transform Summary x[n] = X[k] = 1 N k= n= X[k]e jkω
More informationStudent Technology Standards Scope and Sequence
ntroduce- Skill is demonstrated, discussed, and practiced evelop-skill is practiced, reinforced, and enhanced 1. General Computer Knowledge 1.1 emonstrates basic operation (example: start up, log on, log
More informationIn this LAB you will explore the following topics using MATLAB. Investigate properties of the column space of a matrix.
MATH 22AL Lab # 6 Objectives In this LAB you will explore the following topics using MATLAB. Investigate properties of the null space of a matrix. Learn how to find a basis for null-space of a matrix.
More informationChapter 1, Section 1.2, Example 9 (page 13) and Exercise 29 (page 15). Use the Uniqueness Tool. Select the option ẋ = x
Use of Tools from Interactive Differential Equations with the texts Fundamentals of Differential Equations, 5th edition and Fundamentals of Differential Equations and Boundary Value Problems, 3rd edition
More informationFast Fourier Transform Discrete-time windowing Discrete Fourier Transform Relationship to DTFT Relationship to DTFS Zero padding
Fast Fourier Transform Discrete-time windowing Discrete Fourier Transform Relationship to DTFT Relationship to DTFS Zero padding J. McNames Portland State University ECE 223 FFT Ver. 1.03 1 Fourier Series
More informationHow many states. Record high temperature
Record high temperature How many states Class Midpoint Label 94.5 99.5 94.5-99.5 0 97 99.5 104.5 99.5-104.5 2 102 102 104.5 109.5 104.5-109.5 8 107 107 109.5 114.5 109.5-114.5 18 112 112 114.5 119.5 114.5-119.5
More information(THIS IS AN OPTIONAL BUT WORTHWHILE EXERCISE)
PART 2: Analysis in ArcGIS (THIS IS AN OPTIONAL BUT WORTHWHILE EXERCISE) Step 1: Start ArcCatalog and open a geodatabase If you have a shortcut icon for ArcCatalog on your desktop, double-click it to start
More informationAMS 132: Discussion Section 2
Prof. David Draper Department of Applied Mathematics and Statistics University of California, Santa Cruz AMS 132: Discussion Section 2 All computer operations in this course will be described for the Windows
More informationthrough any three given points if and only if these points are not collinear.
Discover Parabola Time required 45 minutes Teaching Goals: 1. Students verify that a unique parabola with the equation y = ax + bx+ c, a 0, exists through any three given points if and only if these points
More informationLAB 2: DTFT, DFT, and DFT Spectral Analysis Summer 2011
University of Illinois at Urbana-Champaign Department of Electrical and Computer Engineering ECE 311: Digital Signal Processing Lab Chandra Radhakrishnan Peter Kairouz LAB 2: DTFT, DFT, and DFT Spectral
More informationES205 Analysis and Design of Engineering Systems: Lab 1: An Introductory Tutorial: Getting Started with SIMULINK
ES205 Analysis and Design of Engineering Systems: Lab 1: An Introductory Tutorial: Getting Started with SIMULINK What is SIMULINK? SIMULINK is a software package for modeling, simulating, and analyzing
More informationLecture 5b: Starting Matlab
Lecture 5b: Starting Matlab James K. Peterson Department of Biological Sciences and Department of Mathematical Sciences Clemson University August 7, 2013 Outline 1 Resources 2 Starting Matlab 3 Homework
More informationExperiment 1: Linear Regression
Experiment 1: Linear Regression August 27, 2018 1 Description This first exercise will give you practice with linear regression. These exercises have been extensively tested with Matlab, but they should
More informationUnit 4: Polynomial and Rational Functions
50 Unit 4: Polynomial and Rational Functions Polynomial Functions A polynomial function y px ( ) is a function of the form p( x) ax + a x + a x +... + ax + ax+ a n n 1 n n n 1 n 1 0 where an, an 1,...,
More informationAssignment 6, Math 575A
Assignment 6, Math 575A Part I Matlab Section: MATLAB has special functions to deal with polynomials. Using these commands is usually recommended, since they make the code easier to write and understand
More informationIntroduction to ArcMap
Introduction to ArcMap ArcMap ArcMap is a Map-centric GUI tool used to perform map-based tasks Mapping Create maps by working geographically and interactively Display and present Export or print Publish
More informationIntroduction to Matlab
History of Matlab Starting Matlab Matrix operation Introduction to Matlab Useful commands in linear algebra Scripts-M file Use Matlab to explore the notion of span and the geometry of eigenvalues and eigenvectors.
More informationExercises for Windows
Exercises for Windows CAChe User Interface for Windows Select tool Application window Document window (workspace) Style bar Tool palette Select entire molecule Select Similar Group Select Atom tool Rotate
More informationLab 1 Uniform Motion - Graphing and Analyzing Motion
Lab 1 Uniform Motion - Graphing and Analyzing Motion Objectives: < To observe the distance-time relation for motion at constant velocity. < To make a straight line fit to the distance-time data. < To interpret
More informationLAB 5 INSTRUCTIONS LINEAR REGRESSION AND CORRELATION
LAB 5 INSTRUCTIONS LINEAR REGRESSION AND CORRELATION In this lab you will learn how to use Excel to display the relationship between two quantitative variables, measure the strength and direction of the
More informationComputer projects for Mathematical Statistics, MA 486. Some practical hints for doing computer projects with MATLAB:
Computer projects for Mathematical Statistics, MA 486. Some practical hints for doing computer projects with MATLAB: You can save your project to a text file (on a floppy disk or CD or on your web page),
More informationLooking hard at algebraic identities.
Looking hard at algebraic identities. Written by Alastair Lupton and Anthony Harradine. Seeing Double Version 1.00 April 007. Written by Anthony Harradine and Alastair Lupton. Copyright Harradine and Lupton
More informationTitrator 3.0 Tutorial: Calcite precipitation
Titrator 3.0 Tutorial: Calcite precipitation November 2008 Steve Cabaniss A. Introduction This brief tutorial is intended to acquaint you with some of the features of the program Titrator. It assumes that
More informationTask 1: Start ArcMap and add the county boundary data from your downloaded dataset to the data frame.
Exercise 6 Coordinate Systems and Map Projections The following steps describe the general process that you will follow to complete the exercise. Specific steps will be provided later in the step-by-step
More informationUser's Guide. 0 Contents. François Cuvelier December 16, Introduction 2
User's Guide François Cuvelier December 16, 2017 Abstract This Matlab toolbox uses a simesh object, comming from the fcsimesh toolbox, to display simplicial meshes or datas on simplicial meshes. Its kernel
More informationExperiment 2: Introduction to MATLAB II
Experiment : Introduction to MATLAB II.Vector, Matrix and Array Commands Some of MATLAB functions operate essentially on a vector (row or column), and others on an m-by-n matrix (m >= ). Array find length
More information1 Overview of Simulink. 2 State-space equations
Modelling and simulation of engineering systems Simulink Exercise 1 - translational mechanical systems Dr. M. Turner (mct6@sun.engg.le.ac.uk 1 Overview of Simulink Simulink is a package which runs in the
More informationIntroduction to simulation databases with ADQL and Topcat
Introduction to simulation databases with ADQL and Topcat Kristin Riebe, GAVO July 05, 2016 Introduction Simulation databases like the Millennium Database or CosmoSim contain data sets from cosmological
More informationBOND LENGTH WITH HYPERCHEM LITE
BOND LENGTH WITH HYPERCHEM LITE LAB MOD2.COMP From Gannon University SIM INTRODUCTION The electron cloud surrounding the nucleus of the atom determines the size of the atom. Since this distance is somewhat
More informationLab 6: Linear Algebra
6.1 Introduction Lab 6: Linear Algebra This lab is aimed at demonstrating Python s ability to solve linear algebra problems. At the end of the assignment, you should be able to write code that sets up
More informationChem 310, Organic Chemistry Lab Molecular Modeling Using Macromodel
Chem 310, Organic Chemistry Lab Molecular Modeling Using Macromodel This is a molecular modeling experiment, and should be written up in your lab notebook just as if it were a normal "wet-chemistry" experiment.
More informationHomework 3 Solutions
18-290 Signals and Systems Profs. Byron Yu and Pulkit Grover Fall 2018 Homework 3 Solutions Part One 1. (25 points) The following systems have x(t) or x[n] as input and y(t) or y[n] as output. For each
More informationIntroduction to SVD and Applications
Introduction to SVD and Applications Eric Kostelich and Dave Kuhl MSRI Climate Change Summer School July 18, 2008 Introduction The goal of this exercise is to familiarize you with the basics of the singular
More informationCompanion. Jeffrey E. Jones
MATLAB7 Companion 1O11OO1O1O1OOOO1O1OO1111O1O1OO 1O1O1OO1OO1O11OOO1O111O1O1O1O1 O11O1O1O11O1O1O1O1OO1O11O1O1O1 O1O1O1111O11O1O1OO1O1O1O1OOOOO O1111O1O1O1O1O1O1OO1OO1OO1OOO1 O1O11111O1O1O1O1O Jeffrey E.
More informationfc-graphics4mesh Matlab toolbox, User's Guide under rhum-ubuntu lts computer
fc-graphics4mesh Matlab toolbox, User's Guide under rhum-ubuntu-16-04-3lts computer François Cuvelier December 13, 2017 Abstract This Matlab toolbox allows to display simplicial meshes or datas on simplicial
More informationICM-Chemist How-To Guide. Version 3.6-1g Last Updated 12/01/2009
ICM-Chemist How-To Guide Version 3.6-1g Last Updated 12/01/2009 ICM-Chemist HOW TO IMPORT, SKETCH AND EDIT CHEMICALS How to access the ICM Molecular Editor. 1. Click here 2. Start sketching How to sketch
More informationBCMB/CHEM 8190 Lab Exercise Using Maple for NMR Data Processing and Pulse Sequence Design March 2012
BCMB/CHEM 8190 Lab Exercise Using Maple for NMR Data Processing and Pulse Sequence Design March 2012 Introduction Maple is a powerful collection of routines to aid in the solution of mathematical problems
More informationFACTORISING ALL TYPES. Junior Cert Revision
FACTORISING ALL TYPES Junior Cert Revision 2017 JCHL Paper 1 Question 12 (a) Factorise n 2 11n + 18. n 2 11n + 18 n 9 n 2 n 2 11n + 18 n 9 n 2 9n 2n 18 9 2 6 3 18 1 2n 9n 11n 2017 JCHL Paper 1 Question
More informationRichter Scale and Logarithms
activity 7.1 Richter Scale and Logarithms In this activity, you will investigate earthquake data and explore the Richter scale as a measure of the intensity of an earthquake. You will consider how numbers
More informationExample 1 (Characteristic Equation, Eigenvalue, and Eigenvector)
Matlab Lab 3 Example 1 (Characteristic Equation, Eigenvalue, and Eigenvector) A polynomial equation is uniquely determined by the coefficients of the monomial terms. For example, the quadratic equation
More informationSTAT2201 Assignment 3 Semester 1, 2017 Due 13/4/2017
Class Example 1. Single Sample Descriptive Statistics (a) Summary Statistics and Box-Plots You are working in factory producing hand held bicycle pumps and obtain a sample of 174 bicycle pump weights in
More informationLAB 2: Orthogonal Projections, the Four Fundamental Subspaces, QR Factorization, and Inconsistent Linear Systems
Math 550A MATLAB Assignment #2 1 Revised 8/14/10 LAB 2: Orthogonal Projections, the Four Fundamental Subspaces, QR Factorization, and Inconsistent Linear Systems In this lab you will use Matlab to study
More informationFigure 2.1 The Inclined Plane
PHYS-101 LAB-02 One and Two Dimensional Motion 1. Objectives The objectives of this experiment are: to measure the acceleration due to gravity using one-dimensional motion, i.e. the motion of an object
More informationRow Space, Column Space, and Nullspace
Row Space, Column Space, and Nullspace MATH 322, Linear Algebra I J. Robert Buchanan Department of Mathematics Spring 2015 Introduction Every matrix has associated with it three vector spaces: row space
More informationAugust 7, 2007 NUMERICAL SOLUTION OF LAPLACE'S EQUATION
August 7, 007 NUMERICAL SOLUTION OF LAPLACE'S EQUATION PURPOSE: This experiment illustrates the numerical solution of Laplace's Equation using a relaxation method. The results of the relaxation method
More informationAMS 27L LAB #6 Winter 2009
AMS 27L LAB #6 Winter 2009 Symbolically Solving Differential Equations Objectives: 1. To learn about the MATLAB Symbolic Solver 2. To expand knowledge of solutions to Diff-EQs 1 Symbolically Solving Differential
More informationECE 102 Engineering Computation
ECE 102 Engineering Computation Phillip Wong MATLAB XY Plots with Linear-Linear Scaling Formatting Plots XY Plots with Logarithmic Scaling Multiple Plots Printing and Saving Plots Introduction to 2D Graphs
More informationto have roots with negative real parts, the necessary and sufficient conditions are that:
THE UNIVERSITY OF TEXAS AT SAN ANTONIO EE 543 LINEAR SYSTEMS AND CONTROL H O M E W O R K # 7 Sebastian A. Nugroho November 6, 7 Due date of the homework is: Sunday, November 6th @ :59pm.. The following
More informationLearning Scientific Notebook
Learning Scientific Notebook Reading and Writing in Scientific Notebook Viewing On-Screen: Zoom Factor, Invisibles Math and Text Producing the Math Symbols from Toolbars and from the Keyboard Using the
More informationInput: A set (x i -yy i ) data. Output: Function value at arbitrary point x. What for x = 1.2?
Applied Numerical Analysis Interpolation Lecturer: Emad Fatemizadeh Interpolation Input: A set (x i -yy i ) data. Output: Function value at arbitrary point x. 0 1 4 1-3 3 9 What for x = 1.? Interpolation
More informationThe Solution of Linear Systems AX = B
Chapter 2 The Solution of Linear Systems AX = B 21 Upper-triangular Linear Systems We will now develop the back-substitution algorithm, which is useful for solving a linear system of equations that has
More informationTitle of the Book. A. U. Thor XYZ University
Title of the Book A. U. Thor XYZ University ii Copyright c1997 by Author Preface Preface Head This is the preface and it is created using a TeX field in a paragraph by itself. When the document is loaded,
More information. var save filename var. y fprintf(fl,'%f %f\n',y) y ..TXT. . fprintf() .TXT. myf = fopen('nam.txt','w'); nam.txt myf.
y fprintf(fl,'%f %f\n',y) y. \n.txt. fprintf()..txt.. myf = fopen('nam.txt','w'); :. (1-4 )..TXT. % Optt.m av =[17.4537 4.57 15.3 17.869 3.7]; Tit = 'Students Average:'; myf = fopen('nam.txt','w'); fprintf(myf,'%s\n',tit);
More information