An Introduction to MatLab
|
|
- Maximillian Beasley
- 6 years ago
- Views:
Transcription
1 Introduction to MatLab 1 An Introduction to MatLab Contents 1. Starting MatLab Workspace and m-files Help Vectors and Matrices Objects Plots Statistics Import and Export of Data Appendix (Plots and Codes) Addition Physics: Solution of the time dependent Schrödinger-Equation... 27
2
3 Introduction to MatLab 3 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
4 4 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
5 Introduction to MatLab 5 3. Help Examples for workspace help Examples for MatLab help menu help by >> help function >> help if >> help for >> help switch >> help whos Click with left mouse buttom: Menu Contents Using MatLab Mathematics - Contents Index Search 4. Vectors and Matrices Comand Output Comment ( 3) >> x = a 0 0 a abcd,,, are numbers (Integer, Real, π,e,i, >> x= a: d : b a a+ d a+ 2d b-d b >> x= a: b a a+ 1 a+ 2 >> x= [ a b c d] a b c d x 3 a+ 2d >> x = linspace( a, b, N) a a+ b b n elements >> x = linspace( a, b) b a b a N 1 N 1 ( ) b a b a a a elementes 99 b 99 b Comand Output Comment >> A= [1 2 3; 4 5 6] ; A( 2,1) x N 2 >> A= [ x ; y ] x, y 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' ) = x, y R A R R y ' M N M+ N N 2
6 6 Scalar produkt: Comand Comment >> x* y' N N = xnyn R, R R n >> A* x' M N N M = Amnxn R R, R R n >> A* B = AmnBnk n R R, R R R R ( n n) ( ) M N N K M K Point produkt: Comand Comment >> x.* y = x y N N R, R N R >> A.* B = A B R R, R R R R functions: Comand mn mn Comment ( 2 ( n )) ( ( sin mn )) N >> x.^2 = x R R ( ) ( ) M N M N M N >> sin A = A R R R R Exercise a) Which function is evaluated by N M N M N f = prod ( 1: N ) (>>'help prod' shows the definition and examples for 'prod') b) Study the results of the commands >> N = ones( 6) >> for n = 1:6, N ( n,1: n) = 1: n; end >> N >> f = prod( N,2) >> plot ( N ( 6,: ), f ',' b' ) >> xlabel (' N ') >> ylabel (' f ') >> title( ' Test 1' ) >> whos
7 Introduction to MatLab 7 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 )
8 8 5. Objects Example >> 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) 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( [ ],[ 0 1 0] )
9 Introduction to MatLab 9 bi) What different line styles are possible bii) Change the line style and the line width biii) change the y-data to [ ]
10 10 6. Plots >>help plot >> x = linspace(0,2* pi); >> plot x,sin x ( ( )) (,sin( ),' :') [ ];.5*[ ]; (,,' y ') or (,,' ') ( Hnd is 'handle' for object) ( ) ( shows object properties) (,' ',' ',' ',10) ( changes object properties) >> plot x x b >> x = >> y = >> fill x y >> Hnd = fill x y y >> 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)
11 Introduction to MatLab 11 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:\ a y' = ( 1 x' ( x.^2 )') b = M c A= M \ y' Y = M * A = A
12 12 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
13 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
14 14 i { 1.. N } ( ) ( x x)( y y) { } ( ) 2 2 i i { 1.. NDat} i 1.. NDat i [ ] Dat r = 1,1. x x y y It is a measure for the linear correlation between the two measured quantities. i i (7-2) 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. Fig. 7-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))); 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
15 Introduction to MatLab Import and Export of Data Matlab help: 'Using matlab Development environment Importing and exporting -
16 16 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 = fft( y) Fast Fourier transformation f _ hnd = fopen(' TimeSeries. txt ',' w'); for n = 1: length( x) fprintf ( f _ hnd,'%10.5 f ; %10.5 f ; %10.5 f \ n ',... xn ( ), yn ( ), Yn ( )) end fclose( f _ hnd) ( ) ( Out to file) 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
17 Introduction to MatLab 17 Plot 1 9. Appendix (Plots and Codes)
18 18
19 Introduction to MatLab 19 Statistics 1 Fortsetzung des Programms
20 20
21 Introduction to MatLab 21 Plot 2
22 22 Plot 3
23 Introduction to MatLab 23
24 Addition Exercise (Fit of arbitrary functions) Create a 'random exponential function' by ( ( ( N) )) y = exp 3 sort ran 1: Approximate this function by z = αe β x Tipp: Approximate ( ) log ( ( )) by ( ) can display y x = y x z x = α + β x. Its an easy way to get α and β. The you z = αe β x.
25 Introduction to MatLab 25
26
27 Introduction to MatLab Physics: Solution of the time dependent Schrödinger-Equation Equation and boundary conditions tψ = xψ, i 2 ψ H ( 0, t) = ψ ( π, t) = 0 ( Kasten) Solution 1 tψ = Hψ i ψ x t = e ψ x Basis (, ) iht (,0) 2 un x sin nx erfüllt Randbedingungen π ψ ( ) = ( ) ( ) N ( xt, ) = c ( tu ) ( x) n= 1 u = H u, mit H = u H u i cm t e c 0 oder c t e c ihmnt () = n( ) iht ˆ () = ( 0) Summary: n n t m mn m mn m n 2 un x sin nx π H ( ) = ( ) π u Hu dx mn m n 0 c t e c ψ = iht ˆ () = ( 0) N () t = c () t u ( x) n= 1 n Start function: 2 ( 0) ( ( π )) ( x) 2 ψ = e e c ( 0) π = ψ 0 ( 0) n ax ik x u dx n
28 28 Formulation with vectors and matrices ( M ) ( 0, π, ) ( 2) ( 1) x = linspace N dx = x x f = 1: M 2 2 ( M) ' ( ) π sin ( ) ( ) sin M mx ( ( )) n π m ( ) u = u = f x n = f x ( nm ) (,1) ( ) ( ) D = D = m = ones N f ( 2) ( ) ( ) ψ ( M ) (. ) π 2 ' mn = m n = m n 0 H u n u dx u D u dx ( ψ m ) 2 ( ( π 2 ) / 0 ) = = e. e ( 0) ( 0) x B ikx ( ) N 1 ( 1 ) ( ) ( 0' ) 0' ( 0 ( ) ( ) ) c 0 = uψ dx = unm ψm dx R R un x ψ ( x) dx
29 Introduction to MatLab 29 MatLab-Program
Introduction to MatLab
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
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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 informationSolutions - Homework # 3
ECE-34: Signals and Systems Summer 23 PROBLEM One period of the DTFS coefficients is given by: X[] = (/3) 2, 8. Solutions - Homewor # 3 a) What is the fundamental period 'N' of the time-domain signal x[n]?
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 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 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 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 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 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 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 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 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 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 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 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 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 informationProject IV Fourier Series
Project IV Fourier Series Robert Jerrard Goal of the project To develop understanding of how many terms of a Fourier series are required in order to well-approximate the original function, and of the differences
More informationCompanion. Jeffrey E. Jones
MATLAB7 Companion 1O11OO1O1O1OOOO1O1OO1111O1O1OO 1O1O1OO1OO1O11OOO1O111O1O1O1O1 O11O1O1O11O1O1O1O1OO1O11O1O1O1 O1O1O1111O11O1O1OO1O1O1O1OOOOO O1111O1O1O1O1O1O1OO1OO1OO1OOO1 O1O11111O1O1O1O1O Jeffrey E.
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 informationJasco V-670 absorption spectrometer
Laser Spectroscopy Labs Jasco V-670 absorption spectrometer Operation instructions 1. Turn ON the power switch on the right side of the spectrophotometer. It takes about 5 minutes for the light source
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 informationOverview of Discrete-Time Fourier Transform Topics Handy Equations Handy Limits Orthogonality Defined orthogonal
Overview of Discrete-Time Fourier Transform Topics Handy equations and its Definition Low- and high- discrete-time frequencies Convergence issues DTFT of complex and real sinusoids Relationship to LTI
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 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 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 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 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 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 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 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 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 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 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 informationHomework 5 Solutions
18-290 Signals and Systems Profs. Byron Yu and Pulkit Grover Fall 2017 Homework 5 Solutions Part One 1. (18 points) For each of the following impulse responses, determine whether the corresponding LTI
More informationLearning MATLAB by doing MATLAB
Learning MATLAB by doing MATLAB December 10, 2005 Just type in the following commands and watch the output. 1. Variables, Vectors, Matrices >a=7 a is interpreted as a scalar (or 1 1 matrix) >b=[1,2,3]
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 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 informationLaboratory handout 5 Mode shapes and resonance
laboratory handouts, me 34 82 Laboratory handout 5 Mode shapes and resonance In this handout, material and assignments marked as optional can be skipped when preparing for the lab, but may provide a useful
More informationCalculating Bond Enthalpies of the Hydrides
Proposed Exercise for the General Chemistry Section of the Teaching with Cache Workbook: Calculating Bond Enthalpies of the Hydrides Contributed by James Foresman, Rachel Fogle, and Jeremy Beck, York College
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 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 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 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 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 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 informationAn Introduction to Matlab
An Introduction to Matlab James K. Peterson Department of Biological Sciences and Department of Mathematical Sciences Clemson University August 25, 2013 Outline Starting Matlab Matlab Vectors and Functions
More information18-Dec-12 PHYS Simple Pendulum. To investigate the fundamental physical properties of a simple pendulum.
Objective Simple Pendulum To investigate the fundamental physical properties of a simple pendulum. Equipment Needed Simple Pendulum Apparatus with Meter Scale and Protractor Bobs 4 (Aluminum, Brass, Lead,
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 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 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 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 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 informationHilbert Space Problems
Hilbert Space Problems Prescribed books for problems. ) Hilbert Spaces, Wavelets, Generalized Functions and Modern Quantum Mechanics by Willi-Hans Steeb Kluwer Academic Publishers, 998 ISBN -7923-523-9
More informationVector Fields and Solutions to Ordinary Differential Equations using MATLAB/Octave
Vector Fields and Solutions to Ordinary Differential Equations using MATLAB/Octave Andreas Stahel 5th December 27 Contents Vector field for the logistic equation 2 Solutions of ordinary differential equations
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 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 informationMath Computer Lab 4 : Fourier Series
Math 227 - Computer Lab 4 : Fourier Series Dylan Zwick Fall 212 This lab should be a pretty quick lab. It s goal is to introduce you to one of the coolest ideas in mathematics, the Fourier series, and
More information9. Introduction and Chapter Objectives
Real Analog - Circuits 1 Chapter 9: Introduction to State Variable Models 9. Introduction and Chapter Objectives In our analysis approach of dynamic systems so far, we have defined variables which describe
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 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 2 Worksheet. Problems. Problem 1: Geometry and Linear Equations
Lab 2 Worksheet Problems Problem : Geometry and Linear Equations Linear algebra is, first and foremost, the study of systems of linear equations. You are going to encounter linear systems frequently in
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 informationLaboratory handouts, ME 340
Laboratory handouts, ME 340 This document contains summary theory, solved exercises, prelab assignments, lab instructions, and report assignments for Lab 4. 2014-2016 Harry Dankowicz, unless otherwise
More informationMatlab Instruction Primer; Chem 691, Spring 2016
1 Matlab Instruction Primer; Chem 691, Spring 2016 This version dated February 10, 2017 CONTENTS I. Help: To obtain information about any instruction in Matlab 1 II. Scripting 1 III. Loops, determine an
More informationMAT 275 Laboratory 4 MATLAB solvers for First-Order IVP
MAT 275 Laboratory 4 MATLAB solvers for First-Order IVP In this laboratory session we will learn how to. Use MATLAB solvers for solving scalar IVP 2. Use MATLAB solvers for solving higher order ODEs and
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 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 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 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 informationComputer Exercise 0 Simulation of ARMA-processes
Lund University Time Series Analysis Mathematical Statistics Fall 2018 Centre for Mathematical Sciences Computer Exercise 0 Simulation of ARMA-processes The purpose of this computer exercise is to illustrate
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 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 informationLinear Motion with Constant Acceleration
Linear Motion 1 Linear Motion with Constant Acceleration Overview: First you will attempt to walk backward with a constant acceleration, monitoring your motion with the ultrasonic motion detector. Then
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 informationComputer Labs for. Differential Equations & Linear Algebra
Computer Labs for Differential Equations & Linear Algebra Contents Preface............................... i Lab 1: Slope Fields and Solution Curves................. 1 Lab 2: Numerical Methods of Euler...................
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 informationMAT 275 Laboratory 4 MATLAB solvers for First-Order IVP
MAT 75 Laboratory 4 MATLAB solvers for First-Order IVP In this laboratory session we will learn how to. Use MATLAB solvers for solving scalar IVP. Use MATLAB solvers for solving higher order ODEs and systems
More informationPhysics with Matlab and Mathematica Exercise #1 28 Aug 2012
Physics with Matlab and Mathematica Exercise #1 28 Aug 2012 You can work this exercise in either matlab or mathematica. Your choice. A simple harmonic oscillator is constructed from a mass m and a spring
More informationPHYS 7411 Spring 2015 Computational Physics Homework 4
PHYS 7411 Spring 215 Computational Physics Homework 4 Due by 3:pm in Nicholson 447 on 3 March 215 Any late assignments will be penalized in the amount of 25% per day late. Any copying of computer programs
More information