LAB 1: MATLAB - Introduction to Programming. Objective:
|
|
- Bethany Harrison
- 6 years ago
- Views:
Transcription
1 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 two-dimensional heat transfer conduction problem. We will also review how to write a program that is well documented and easy to read. Background: The steady-state two-dimensional temperature distribution, T(x, y), in a solid with constant thermal conductivity and rectangular cross section as shown in Figure 1 can be found analytically by solving the heat diffusion equation (or Laplace s Equation) 2 T x + 2 T 2 y = 0 (1) 2 using the Separation of Variables method. An introduction to the method can be found in Bergman, et al., Introduction to Heat Transfer, 6 th ed., Wiley, 2011, pp Another excellent reference for analytical solutions to conduction problems is Carslaw and Jaeger, Conduction of Heat in Solids, Oxford University Press, We are interested in analytical solutions in this class because they are useful for validating a numerical method (or making sure our approximate numerical calculations are accurate). y y = L y T(x, y = L y ) = T 2 T(x = 0, y) = T 1 T(x = L x, y) = T 1 x T(x, y = 0) = T 1 x = L x Figure 1. Schematic of two-dimensional domain for conduction heat transfer.
2 As an example, for the following boundary conditions shown in Figure 1 T( x = 0,y) = T 1, T( x = L x, y) = T 1, T( x, y = 0) = T 1, T( x, y = L y ) = T 2 (2) where T 1 and T 2 are constant temperatures and dimensionless temperature θ( x, y) is defined as ( ) = T ( x, y ) T 1 θ x, y the analytical solution can be determined to be ( ) = 2 π θ x, y which is an infinite series solution. Laboratory: n=1 T 2 T 1 (3) ( 1) n % sin n π x ( sinh n π y L x ' * n & L x ) sinh n π L y ( ) ( L x ). (4) For this laboratory, you will write a MATLAB m-file to calculate the temperature from the analytical solution above at a matrix of x and y coordinates and make a contour plot of the results. Below are some general instructions on how to write your program. Please refer to the online MATLAB help files as needed for more complete information. If you have not previously used MATLAB, or if you have forgotten some of MATLAB s features or syntax, you should use the program help material before starting this assignment. In particular, use the Help menu item and Product Help sub menu item to bring up the Help window. On the left press the Contents tab. Under the MATLAB and Getting Started submenus read through the material in the Quick Start, Language Fundamentals, Mathematics, Graphics, and Programming sections. 1. Open MATLAB by double clicking on the MATLAB icon on the desktop. Create a new script (or m-file) using the File, New, and Script menu item. Save the file as ME554_lab1.m (or anything else, but do NOT use a name with spaces) using the File and Save As menu item. Recall that a script (or m-file) is simply a list of MATLAB instructions saved in a file with a.m extension. Write a header for your program using % for comment lines. Your header should include the program name, description, your name, date created, date last modified, and a variable list with definitions (come back and add these later). Continue to use many comment lines throughout your program to describe each subsequent set of commands and to indicate units for each parameter. 2. Next, put a line with just clear, clc to clear the memory of all variables and clear the screen. 2
3 3. Set the values for the geometry and boundary condition parameters (L x, L y, T 1, and T 2 ). You can do this generally in three ways: simple assignment statement, by reading input from the screen during execution, or by reading data from a file. Use the first method for some of the input as follows: T1 = 100; % deg. Celsius where the semicolon suppresses output during execution and the units are included as a comment. Also, try using the second method with an input statement: T2 = input( Input temperature at y = Ly in deg. C: ) 4. Create vectors of x and y values of the coordinates at which you need to evaluate the temperature. First, set N x and N y to the number of increments in each direction. Again, you can do this with any of the methods given is Step 2. Second, calculate the increments between calculations: dx = Lx/Nx; dy = Ly/Ny; % m, increment in x-direction % m, increment in y-direction Third, create the vectors of x and y values using the following: x = [0:dx:Lx]; y = [0:dy:Ly]; If you do not know what these lines create, enter them in the Command Window in MATLAB with numbers substituted for the variables to test their output. Note that these lines demonstrate some of the power of MATLAB in that you can create a vector of data in a single line, unlike FORTRAN or c Initialize a matrix to store the data for θ during calculations using the zeros function and set θ =1 at your top boundary using: theta = zeros(nx + 1, Ny + 1); theta(:,ny+1) = 1; This is required for two reasons: (1) to allocate the correct amount of space in memory for your array and (2) to initialize θ to zero for the summation in the next step. 6. Calculate the value of θ at each (x, y) location. To do this, use two nested for loops to cycle through each (x, y) location with the following syntax: for j = 2:Ny for i = 2:Nx % insert Equation (4) here end end 3
4 You will need to use a third nested for loop to sum up the terms in Equation (4). Use to continue your equation on the next line to make it easier to read. Note that for MATLAB pi will give you π with sufficient precision. For this sum, let n go from 1 to 199. Because you are stopping the calculation at a finite number of terms your results will have truncation error in addition to machine precision error for double precision calculations. Note that in Equation (4), for even values of n, the summation term goes to 0 so you can skip these terms to speed up the calculation. One way to do this in MATLAB is to use for n = 1:2:199 which increments n by 2 for each loop instead of the default increment of Convert the calculated θ matrix to temperatures using the variable name T. 8. Print out temperature data to the screen for review using fprintf to produce formatted output. The following lines work well: for j = Ny+1:-1:1 fprintf('%7.1f', T(:,j)) fprintf('\n') end These lines print out the temperatures in the order you would expect for a Cartesian coordinate system (rotated counterclockwise 90 as shown in Figure 2). The %7.1f sets the format for the temperatures as floating point with seven spaces and one number after the decimal place. The \n adds a carriage return between lines. Alternatively, you can use (fliplr(t)) or rot90(t) to rotate the T matrix before printing it out. 9. Make a contour plot of the resulting temperatures using the following lines: dt = (T2 T1)/Nc; v = T1:dT:T2; colormap(jet) contourf(x, y, T', v) colorbar Tmax = max(t1, T2) Tmin = min(t1, T2) caxis ([Tmin, Tmax]) axis equal tight title('contour Plot of Temperature in deg. C') xlabel('x (m)') ylabel('y (m)') where N c is the number of contours (whose value needs to be set), dt is the step in temperature between contours, and v is a vector that sets the temperature levels for the contours. The MATLAB built in function colormap sets the colors used for contours, contourf creates the filled contour plot where ' after T transposes the matrix, colorbar adds a scale to the plot where caxis sets the limits, axis equal makes the x and y axes have the same length, and xlabel and ylabel add x-axis and y-axis labels to the plot. 4
5 10. Try changing the variables or options for Steps 8 and 9 to alter the output. You can also explore some of the many other options for plotting data. For example, changing the 4th line to contourf(x, y, T', v, 'LineStyle', 'none') will remove the lines between the contours. Assignment Submit your lab assignment as a single pdf file using PolyLearn with the items listed below. 1. Set the following values in your code: L x = L y = 1 m, T 1 = 0 C, and T 2 = 100 C. Include tables for temperature values at each location for N x = N y = 5 and N x = N y = 10. Label them Table 1 and Table 2 along with a descriptive caption above the table. Include x and y locations for each temperature on your table so you can determine which temperatures are evaluated at the same location. Use 4 decimal places for temperature data evaluated using double precision. 2. Verify that your solution has converged to at least four decimal places for temperatures on the interior of your domain. Discuss how limits in machine precision and truncating the infinite series solution to a finite number of terms influence the accuracy (be quantitative) of your calculated temperatures. To help you answer this question use the MATLAB function eps() to determine the accuracy of both double and single precision floating point calculations and compare this to the magnitude of terms in your summation. 3. Compare the values in Table 1 and 2 for each case at the same coordinate locations. Are the temperatures the same or different (be quantitative) at each location where they overlap? Briefly explain why this result makes sense. 4. Include contour plots for the two cases in step 2. For each figure include Figure 1 and Figure 2 along with a descriptive caption below the figure. Make sure that if you plot or print out your results in grayscale that you use grayscale for your colormap so that each temperature has a distinct shade. 5. Do the contour plots change for these two cases? Briefly explain why this result makes sense and how this corresponds to the accuracy of your solution. 6. Include a copy of your final m-file. 5
6 Cartesian Coordinates: ( ) Δx Δy = L y N y and y j = ( j 1) Δy T i, j = T(x i,y j ) where Δx = L x N x and x i = i 1 y y T 1, Ny+1 T Nx+1, Ny+1 Figure is shown with N x = N y = 3 L y x T 1,2 T 2,2 T 1,1 T 2,1 T Nx+1, 1 x L x Matrix Notation: " T 1,1 T 1,2! T 1,Ny % +1 $ ' T 2,1 T 2,2 " [ T] = $ ' $ " # " ' $ ' # T Nx +1,1!! T Nx +1,N y +1& j (column number) NOTE: The T matrix is rotated clockwise 90 relative to the Cartesian coordinate system. i (row number) Figure 2. Schematic diagrams of Cartesian coordinate system and matrix notation. 6
MATLAB 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 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 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 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 informationSolving Differential Equations on 2-D Geometries with Matlab
Solving Differential Equations on 2-D Geometries with Matlab Joshua Wall Drexel University Philadelphia, PA 19104 (Dated: April 28, 2014) I. INTRODUCTION Here we introduce the reader to solving partial
More informationDISCRETE RANDOM VARIABLES EXCEL LAB #3
DISCRETE RANDOM VARIABLES EXCEL LAB #3 ECON/BUSN 180: Quantitative Methods for Economics and Business Department of Economics and Business Lake Forest College Lake Forest, IL 60045 Copyright, 2011 Overview
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 informationUsing SkyTools to log Texas 45 list objects
Houston Astronomical Society Using SkyTools to log Texas 45 list objects You can use SkyTools to keep track of objects observed in Columbus and copy the output into the Texas 45 observation log. Preliminary
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 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 informationSYMBOLIC AND NUMERICAL COMPUTING FOR CHEMICAL KINETIC REACTION SCHEMES
SYMBOLIC AND NUMERICAL COMPUTING FOR CHEMICAL KINETIC REACTION SCHEMES by Mark H. Holmes Yuklun Au J. W. Stayman Department of Mathematical Sciences Rensselaer Polytechnic Institute, Troy, NY, 12180 Abstract
More informationME 320L/354L Laboratory 3
ME 320L/354L Laboratory 3 Verification of numerical solution for transient conduction Introduction As we did last time around, we put on Fourier s hat, and his shoes for good measure, and pretend that
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 informationElectric Fields and Equipotentials
OBJECTIVE Electric Fields and Equipotentials To study and describe the two-dimensional electric field. To map the location of the equipotential surfaces around charged electrodes. To study the relationship
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 informationLab 5: Post Processing and Solving Conduction Problems. Objective:
Lab 5: Post Processing and Solving Conduction Problems Objective: The objective of this lab is to use the tools we have developed in MATLAB and SolidWorks to solve conduction heat transfer problems that
More informationMAT 343 Laboratory 6 The SVD decomposition and Image Compression
MA 4 Laboratory 6 he SVD decomposition and Image Compression In this laboratory session we will learn how to Find the SVD decomposition of a matrix using MALAB Use the SVD to perform Image Compression
More informationIntroduction to Computer Tools and Uncertainties
Experiment 1 Introduction to Computer Tools and Uncertainties 1.1 Objectives To become familiar with the computer programs and utilities that will be used throughout the semester. To become familiar with
More informationExperiment: Oscillations of a Mass on a Spring
Physics NYC F17 Objective: Theory: Experiment: Oscillations of a Mass on a Spring A: to verify Hooke s law for a spring and measure its elasticity constant. B: to check the relationship between the period
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 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 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 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 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 informationExample Example Example Example
7. More Practice with Iteration and Conditionals Through Graphics We will Draw Pictures Using Three User-Defined* Graphics Functions For-Loop Problems Introduce While-Loops DrawRect DrawDisk DrawStar Rectangles
More informationC:\Dokumente und Einstellungen \All Users\Anwendungsdaten \Mathematica. C:\Dokumente und Einstellungen \albert.retey\anwendungsdaten \Mathematica
Installation SmartCAE`HeatTransmission` is delivered as either a Microsoft Windows Installer Package (SmartCAEHeatTransmission-1.0.msi) or a ZIP-File. If you have trouble installing the package, please
More informationPartial Differential Equations (PDEs) and the Finite Difference Method (FDM). An introduction
Page of 8 Partial Differential Equations (PDEs) and the Finite Difference Method (FDM). An introduction FILE:Chap 3 Partial Differential Equations-V6. Original: May 7, 05 Revised: Dec 9, 06, Feb 0, 07,
More informationFinite Element Modules for Enhancing Undergraduate Transport Courses: Application to Fuel Cell Fundamentals
Finite Element Modules for Enhancing Undergraduate Transport Courses: Application to Fuel Cell Fundamentals Originally published in 007 American Society for Engineering Education Conference Proceedings
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 3 Acceleration. What You Need To Know: Physics 211 Lab
b Lab 3 Acceleration Physics 211 Lab What You Need To Know: The Physics In the previous lab you learned that the velocity of an object can be determined by finding the slope of the object s position vs.
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 informationThe roots are found with the following two statements. We have denoted the polynomial as p1, and the roots as roots_ p1.
Part II Lesson 10 Numerical Analysis Finding roots of a polynomial In MATLAB, a polynomial is expressed as a row vector of the form [an an 1 a2 a1 a0]. The elements ai of this vector are the coefficients
More informationTemperature measurement
Luleå University of Technology Johan Carlson Last revision: July 22, 2009 Measurement Technology and Uncertainty Analysis - E7021E Lab 3 Temperature measurement Introduction In this lab you are given a
More informationPhysics 103 Newton s 2 nd Law On Atwood s Machine with Computer Based Data Collection
Physics 103 Newton s 2 nd Law On Atwood s Machine with Computer Based Data Collection Materials Photogate with pulley, mass set, ~1.2 meter long string, LabPro analog to digital converter and a computer.
More informationON SITE SYSTEMS Chemical Safety Assistant
ON SITE SYSTEMS Chemical Safety Assistant CS ASSISTANT WEB USERS MANUAL On Site Systems 23 N. Gore Ave. Suite 200 St. Louis, MO 63119 Phone 314-963-9934 Fax 314-963-9281 Table of Contents INTRODUCTION
More informationMolecular Modeling and Conformational Analysis with PC Spartan
Molecular Modeling and Conformational Analysis with PC Spartan Introduction Molecular modeling can be done in a variety of ways, from using simple hand-held models to doing sophisticated calculations on
More informationSCIENTIFIC COMPUTING 7P-100-SCI
Engineering cycle, 2nd year 1 SCIENTIFIC COMPUTING 7P-100-SCI Lesson 1: General introduction and reminder on Matlab Hervé Sauer, Charles Bourassin-Bouchet, Mondher Besbes Ludivine Emeric, Léo Wojszvzyk
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 informationPhysics 212E Spring 2004 Classical and Modern Physics. Computer Exercise #2
Physics 212E Spring 2004 Classical and Modern Physics Chowdary Computer Exercise #2 Launch Mathematica by clicking on the Start menu (lower left hand corner of the screen); from there go up to Science
More informationLab I. 2D Motion. 1 Introduction. 2 Theory. 2.1 scalars and vectors LAB I. 2D MOTION 15
LAB I. 2D MOTION 15 Lab I 2D Motion 1 Introduction In this lab we will examine simple two-dimensional motion without acceleration. Motion in two dimensions can often be broken up into two separate one-dimensional
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 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 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 information2: SIMPLE HARMONIC MOTION
2: SIMPLE HARMONIC MOTION Motion of a mass hanging from a spring If you hang a mass from a spring, stretch it slightly, and let go, the mass will go up and down over and over again. That is, you will get
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 information2 Solving Ordinary Differential Equations Using MATLAB
Penn State Erie, The Behrend College School of Engineering E E 383 Signals and Control Lab Spring 2008 Lab 3 System Responses January 31, 2008 Due: February 7, 2008 Number of Lab Periods: 1 1 Objective
More informationLab I. 2D Motion. 1 Introduction. 2 Theory. 2.1 scalars and vectors LAB I. 2D MOTION 15
LAB I. 2D MOTION 15 Lab I 2D Motion 1 Introduction In this lab we will examine simple two-dimensional motion without acceleration. Motion in two dimensions can often be broken up into two separate one-dimensional
More informationCHEMDRAW ULTRA ITEC107 - Introduction to Computing for Pharmacy. ITEC107 - Introduction to Computing for Pharmacy 1
CHEMDRAW ULTRA 12.0 ITEC107 - Introduction to Computing for Pharmacy 1 Objectives Basic drawing skills with ChemDraw Bonds, captions, hotkeys, chains, arrows Checking and cleaning up structures Chemical
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 informationCantera / Stancan Primer
Cantera / Stancan Primer Matthew Campbell; A.J. Simon; Chris Edwards Introduction to Cantera and Stancan Cantera is an open-source, object-oriented software package which performs chemical and thermodynamic
More informationCompanion. Jeffrey E. Jones
MATLAB7 Companion 1O11OO1O1O1OOOO1O1OO1111O1O1OO 1O1O1OO1OO1O11OOO1O111O1O1O1O1 O11O1O1O11O1O1O1O1OO1O11O1O1O1 O1O1O1111O11O1O1OO1O1O1O1OOOOO O1111O1O1O1O1O1O1OO1OO1OO1OOO1 O1O11111O1O1O1O1O Jeffrey E.
More informationHOMEWORK 3: Phase portraits for Mathmatical Models, Analysis and Simulation, Fall 2010 Report due Mon Oct 4, Maximum score 7.0 pts.
HOMEWORK 3: Phase portraits for Mathmatical Models, Analysis and Simulation, Fall 2010 Report due Mon Oct 4, 2010. Maximum score 7.0 pts. Three problems are to be solved in this homework assignment. The
More information'XNH8QLYHUVLW\ (GPXQG73UDWW-U6FKRRORI(QJLQHHULQJ. EGR 53L Fall Test I. Rebecca A. Simmons & Michael R. Gustafson II
'XNH8QLYHUVLW\ (GPXQG73UDWW-U6FKRRORI(QJLQHHULQJ EGR 53L Fall 2008 Test I Rebecca A. Simmons & Michael R. Gustafson II Name (please print) In keeping with the Community Standard, I have neither provided
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 informationRepresentations of Motion in One Dimension: Speeding up and slowing down with constant acceleration
Representations of Motion in One Dimension: Speeding up and slowing down with constant acceleration Name: Group Members: Date: TA s Name: Apparatus: Aluminum track and supports, PASCO Smart Cart, two cart
More informationSenior astrophysics Lab 2: Evolution of a 1 M star
Senior astrophysics Lab 2: Evolution of a 1 M star Name: Checkpoints due: Friday 13 April 2018 1 Introduction This is the rst of two computer labs using existing software to investigate the internal structure
More informationDetermination of Density 1
Introduction Determination of Density 1 Authors: B. D. Lamp, D. L. McCurdy, V. M. Pultz and J. M. McCormick* Last Update: February 1, 2013 Not so long ago a statistical data analysis of any data set larger
More informationThe data for this lab comes from McDonald Forest. We will be working with spatial data representing the forest boundary, streams, roads, and stands.
GIS LAB 6 Using the Projection Utility. Converting Data to Oregon s Approved Lambert Projection. Determining Stand Size, Stand Types, Road Length, and Stream Length. This lab will ask you to work with
More informationChapter 2: Numeric, Cell, and Structure Arrays
Chapter 2: Numeric, Cell, and Structure Arrays Topics Covered: Vectors Definition Addition Multiplication Scalar, Dot, Cross Matrices Row, Column, Square Transpose Addition Multiplication Scalar-Matrix,
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 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 informationExperiment 0 ~ Introduction to Statistics and Excel Tutorial. Introduction to Statistics, Error and Measurement
Experiment 0 ~ Introduction to Statistics and Excel Tutorial Many of you already went through the introduction to laboratory practice and excel tutorial in Physics 1011. For that reason, we aren t going
More informationM E R C E R W I N WA L K T H R O U G H
H E A L T H W E A L T H C A R E E R WA L K T H R O U G H C L I E N T S O L U T I O N S T E A M T A B L E O F C O N T E N T 1. Login to the Tool 2 2. Published reports... 7 3. Select Results Criteria...
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 informationCreated: 2/3/96 Modified: September 29, Author: Theresa Julia Zielinski Page 1
Exploring Orthonormal Functions by Theresa Julia Zielinski Department of Chemistry, Medical Technology, and Physics Monmouth University West Long Branch, NJ 7764-898 tzielins@monmouth.edu Copyright 7 by
More informationHandout 8 MATLAB Code for the Projection Method and BC Details for the Lid-Driven Cavity Problem
Handout 8 MATLAB Code for the Projection Method and BC Details for the Lid-Driven Cavity Problem Let s simplify the equations of the last page of Handout 7 for the case h = Δx = Δy because the code given
More informationPHY 123 Lab 9 Simple Harmonic Motion
PHY 123 Lab 9 Simple Harmonic Motion (updated 11/17/16) The purpose of this lab is to study simple harmonic motion of a system consisting of a mass attached to a spring. You will establish the relationship
More informationEEL2216 Control Theory CT1: PID Controller Design
EEL6 Control Theory CT: PID Controller Design. Objectives (i) To design proportional-integral-derivative (PID) controller for closed loop control. (ii) To evaluate the performance of different controllers
More information1 Introduction to MATLAB
L3 - December 015 Solving PDEs numerically (Reports due Thursday Dec 3rd, carolinemuller13@gmail.com) In this project, we will see various methods for solving Partial Differential Equations (PDEs) using
More information41. Sim Reactions Example
HSC Chemistry 7.0 41-1(6) 41. Sim Reactions Example Figure 1: Sim Reactions Example, Run mode view after calculations. General This example contains instruction how to create a simple model. The example
More informationCOMS 6100 Class Notes
COMS 6100 Class Notes Daniel Solus September 20, 2016 1 General Remarks The Lecture notes submitted by the class have been very good. Integer division seemed to be a common oversight when working the Fortran
More informationMAT300/500 Programming Project Spring 2019
MAT300/500 Programming Project Spring 2019 Please submit all project parts on the Moodle page for MAT300 or MAT500. Due dates are listed on the syllabus and the Moodle site. You should include all neccessary
More informationProblem 1 (10 points)
y x CHEN 1703 - HOMEWORK 4 Submit your MATLAB solutions via the course web site. Be sure to include your name and UNID in your m-file. Submit each solution seperately. Also be sure to document your solutions
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 information1. The Basic X-Y Scatter Plot
1. The Basic X-Y Scatter Plot EXCEL offers a wide range of plots; however, this discussion will be restricted to generating XY scatter plots in various formats. The easiest way to begin is to highlight
More informationMAGNETITE OXIDATION EXAMPLE
HSC Chemistry 7.0 1 MAGNETITE OXIDATION EXAMPLE Pelletized magnetite (Fe 3 O 4 ) ore may be oxidized to hematite (Fe 2 O 3 ) in shaft furnace. Typical magnetite content in ore is some 95%. Oxidation is
More informationLab #10 Atomic Radius Rubric o Missing 1 out of 4 o Missing 2 out of 4 o Missing 3 out of 4
Name: Date: Chemistry ~ Ms. Hart Class: Anions or Cations 4.7 Relationships Among Elements Lab #10 Background Information The periodic table is a wonderful source of information about all of the elements
More informationRead through A Graphing Checklist for Physics Graduate Students before submitting any plots in this module. See the course website for the link.
Module C2: MatLab The Physics and Astronomy Department has several copies of MATLAB installed on computers that can be accessed by students. MATLAB is a highly developed software package that allows the
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 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 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 informationConformational Analysis of n-butane
Conformational Analysis of n-butane In this exercise you will calculate the Molecular Mechanics (MM) single point energy of butane in various conformations with respect to internal rotation around the
More informationRemember that C is a constant and ë and n are variables. This equation now fits the template of a straight line:
CONVERTING NON-LINEAR GRAPHS INTO LINEAR GRAPHS Linear graphs have several important attributes. First, it is easy to recognize a graph that is linear. It is much more difficult to identify if a curved
More informationFluid flow I: The potential function
5//0 Miscellaneous Exercises Fluid Flow I Fluid flow I: The potential function One of the equations describing the flow of a fluid is the continuity equation: u 0 t where is the fluid density and u is
More informationDOAS measurements of Atmospheric Species
Practical Environmental Measurement Techniques: DOAS measurements of Atmospheric Species Last change of document: April 14, 2014 Supervisor: Dr. Andreas Richter, room U2090, tel 62103, and Dr. Folkard
More informationSimultaneous Equations Solve for x and y (What are the values of x and y): Summation What is the value of the following given x = j + 1. x i.
1 Algebra Simultaneous Equations Solve for x and y (What are the values of x and y): x + 2y = 6 x - y = 3 Summation What is the value of the following given x = j + 1. Summation Calculate the following:
More informationPHYS 301 HOMEWORK #13-- SOLUTIONS
PHYS 31 HOMEWORK #13-- SOLUTIONS 1. The wave equation is : 2 u x = 1 2 u 2 v 2 t 2 Since we have that u = f (x - vt) and u = f (x + vt), we substitute these expressions into the wave equation.starting
More informationLab 15 Taylor Polynomials
Name Student ID # Instructor Lab Period Date Due Lab 15 Taylor Polynomials Objectives 1. To develop an understanding for error bound, error term, and interval of convergence. 2. To visualize the convergence
More informationMERGING (MERGE / MOSAIC) GEOSPATIAL DATA
This help guide describes how to merge two or more feature classes (vector) or rasters into one single feature class or raster dataset. The Merge Tool The Merge Tool combines input features from input
More informationSpeed and Velocity: Recall from Calc 1: If f (t) gives the position of an object at time t, then. velocity at time t = f (t) speed at time t = f (t)
Speed and Velocity: Recall from Calc 1: If f (t) gives the position of an object at time t, then velocity at time t = f (t) speed at time t = f (t) Math 36-Multi (Sklensky) In-Class Work January 8, 013
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 informationBfh Ti Control F Ws 2008/2009 Lab Matlab-1
Bfh Ti Control F Ws 2008/2009 Lab Matlab-1 Theme: The very first steps with Matlab. Goals: After this laboratory you should be able to solve simple numerical engineering problems with Matlab. Furthermore,
More informationLab Activity: The Central Limit Theorem
Lab Activity: The Central Limit Theorem In this lab activity, you will explore the properties of the Central Limit Theorem. Student Learning Outcomes By the end of this chapter, you should be able to do
More informationTALLINN UNIVERSITY OF TECHNOLOGY, INSTITUTE OF PHYSICS 6. THE TEMPERATURE DEPENDANCE OF RESISTANCE
6. THE TEMPERATURE DEPENDANCE OF RESISTANCE 1. Objective Determining temperature coefficient of metal and activation energy of self-conductance of semiconductor sample. 2. Equipment needed Metal and semiconductor
More informationRefine & Validate. In the *.res file, be sure to add the following four commands after the UNIT instruction and before any atoms: ACTA CONF WPDB -2
Refine & Validate Refinement is simply a way to improve the fit between the measured intensities and the intensities calculated from the model. The peaks in the difference map and the list of worst fitting
More informationThe Geodatabase Working with Spatial Analyst. Calculating Elevation and Slope Values for Forested Roads, Streams, and Stands.
GIS LAB 7 The Geodatabase Working with Spatial Analyst. Calculating Elevation and Slope Values for Forested Roads, Streams, and Stands. This lab will ask you to work with the Spatial Analyst extension.
More informationECE 220 Laboratory 4 Volt Meter, Comparators, and Timer
ECE 220 Laboratory 4 Volt Meter, Comparators, and Timer Michael W. Marcellin Please follow all rules, procedures and report requirements as described at the beginning of the document entitled ECE 220 Laboratory
More informationEGR 111 Heat Transfer
EGR 111 Heat Transfer The purpose of this lab is to use MATLAB to determine the heat transfer in a 1-dimensional system. New MATLAB commands: (none) 1. Heat Transfer 101 Heat Transfer is thermal energy
More informationNote: The command name is upper case in the description given by help, but must be lower case in actual use. And the backslash Anb is dierent when A i
MATLAB Tutorial You need a small number of basic commands to start using MATLAB. This short tutorial describes those fundamental commands. You need to create vectors and matrices, to change them, and to
More informationTOPIC 2 Computer application for manipulating matrix using MATLAB
YOGYAKARTA STATE UNIVERSITY MATHEMATICS AND NATURAL SCIENCES FACULTY MATHEMATICS EDUCATION STUDY PROGRAM TOPIC 2 Computer application for manipulating matrix using MATLAB Definition of Matrices in MATLAB
More information