LAB 6: LOOP STATEMENTS
|
|
- Simon Dennis
- 5 years ago
- Views:
Transcription
1 NAME: LAB 6: LOOP STATEMENTS This laboratory exercise will involve you writing your first loop statements in MATLAB functions and scripts. Your final code will be handed in via a single zip file following the instructions at the end of the lab. Make sure to comment your code and include the proper MATLAB header information. Because this lab focuses on loops, you should use loops to solve the following tasks, and any vectors/matrices that change size on each iteration should be pre-allocated, if possible. You should not use any vectorized code except when loading the data file(s) and plotting data at the end of your script/function. Part I: Converting Temperatures A common quantitative task in Earth sciences is to convert data from one unit to another. On the course website, I have provided an ASCII file with a temperature time series from the temperature gauges in the Boone area. The data are arranged in columns: Column 1: Time (decimal days) Column 2: Watauga Hospital (air temp, F) Column 3: Winkler s Creek (water temp, F) Column 4: Boone Creek (water temp, F) Unfortunately, the data are unusable in their current form. Your task is to: 1) Create a new MATLAB script called processtemps.m. 2) Load the data file streamtemp.dat (provided on the course website) into MATLAB and store it in a matrix called tempdat. 3) Using a single for loop, convert all of the temperatures into C and make it so the time series starts at time=0 days. Make sure that your code will work for any data file with this layout, so your code will have to figure out what the first time is automatically. 4) Make a plot of all three of the converted temperature time series on one plot (x=time y=temp) with labeled axes, and a useful legend. Plot the data with lines (no symbols) and make the Watauga Hospital data blue, Winkler Creek red, and Boone Creek green. Page 1 of 5
2 Part II: A Three-Dimensional Grid Generator Because the world around us is three-dimensional many equations that represent geologic processes are three dimensional (i.e. they are functions of x, y, and z). To evaluate a three-dimensional equation, scientists commonly use grids, or uniformly spaced data points. Your task is to: 1) Create a new MATLAB function called make3dgrid.m. 2) Your function should accept 9 arguments in the following order: xmin, xmax, numx, ymin, ymax, numy, zmin, zmax, and numz. These will represent the min/max ranges of the extent of your volumetric grid of data points. The num* variables will assign the total number of points in each coordinate direction. You should create the grid using nested for loops. Be sure to pre-allocate! Hint: you will probably want to drive your loops with linspace instead of the colon operator. 3) Your function should return a variable called gridxyz, which contains an [n x 3] matrix of the x, y, and z locations of grid points. After all, there would be no point in making a grid of data points unless you actually return the data to the user. 4) Your function should make a three-dimensional plot of your volumetric grid (use the plot3 command). Plot the data points as red-filled circles with black outlines. You do not need to label the axes since this is a generic grid generator and we do not know what the axes are. To improve rendering, turn on the rotation tool, and make sure there is no vertical or horizontal exaggeration, add the following lines of code after your plot call. Be sure to rotate around your plot and admire the coolness of 3D plotting in MATLAB! grid on; axis(gca,'vis3d'); axis equal; rotate3d on; Page 2 of 5
3 Part III: The 1994 M6.7 Northridge Earthquake: Aftershocks (and Foreshocks?) On January 17 th, 1994, a Magnitude 6.7 earthquake struck just north of downtown Los Angeles, California. At the time, it was the most expensive natural disaster the United States had ever experienced. A detailed seismic catalog of earthquakes in southern California was recently published in the Bulletin of the Seismological Society of America. The data is available in ASCII format at Because the catalog has a few columns with non-numerical data, I have provided a version of the data file that has only numeric data, but is otherwise identical. I encourage you to visit the SCEC website linked above, but please use the data file provided on the course website. Your task for this dataset is to identify which earthquakes are potential aftershocks based on parameters that I provide, and to determine if there was any unusual seismic activity before the event that should have alerted us (i.e. were there foreshocks?). 1) Create a new MATLAB script called processeqs.m. 2) Download the earthquake catalog file from the course website and load it into MATLAB and store the numeric data into a matrix called data. Note that the file is VERY large, so depending on your computer s hardware, it may take ten seconds to one minute just to load the data. Because this dataset is very large, you should not split up your data matrix into separate column vectors. You should know how to refer to a single column of data in MATLAB when plotting. 3) Download the California coastline ASCII file from the course website and load this into a matrix called coast. Also, create a 1x2 matrix called northridge, and store the epicenter location ( ) of the main shock. 4) Publications on the Northridge event suggest that the postseismic deformation associated with this event ceased after 100 days from the event. Let s assume that any earthquake within 100 days of the event (including the day of the event) are potentially aftershocks. This means that all events between Jan 17 th 1994 through and including April 27 th 1994 are potential candidates. Also, for an event to be considered an aftershock, it must be spatially correlated with the mainshock. Let s make a simple assumption and say that an event is within the aftershock zone if it is has a Lat/Lon range that falls within: 33.8 Latitude Longitude In other words, your script will need to search the entire catalog for any and all events that happened within 100 days of the mainshock and fall within the aftershock location window provided above. This is conceptually simple, but you should definitely write out a basic algorithm of what your code needs to do before you start coding. You should store your aftershock data in a matrix called ashock. Hints: This will require a single loop with several nested if-elseif-else statements. It is probably easiest if you filter by lon/lat first. Page 3 of 5
4 5) To determine if there was any unusual behavior before the event that one could claim is foreshock activity, you will need to do the same kind of search as in question 5, but look for any and all events in the 100 days before the Northridge event (i.e. October 9 th 1993). Do not include the mainshock day in your search, just the 100 previous days. Because this is a similar type of search as what you did in question 5 above, but with different conditions, you should do this in a separate loop. So, question 5 should have a single dedicated loop and question 6 should have a single separate, but similar loop. Store the potential foreshock data in a matrix called fshock. 6) Your script should print out the following useful messages to the command window: Loaded x Total Earthquakes Found x aftershocks Found x potential foreshocks Elapsed time is x seconds. Make sure that the first three entries line up neatly. The first three entries should all be printed as integers, and the last entry can be directly printed simply by using the toc command. 7) To visualize your results, you need to make two plots in two separate figure windows. The plots are both identical except that one shows the entire earthquake catalog region: 30.0 Latitude Longitude while the second plot shows a zoomed in view of the Northridge region: 33.8 Latitude Longitude ) Each plot should have the following things plotted: a) The raw/entire earthquake catalog should be plotted with red points/pixels. Use the axis( equal ) command to make sure your plots are not distorted. b) The earthquakes that you identified as aftershocks should be plotted with blue points/pixels c) The events that you determined to be potential foreshocks should be plotted with greenfilled circles (size=5) with black outlines. d) The Northridge mainshock event should be plotted as a yellow-filled pentagram (size=12) with a black outline. The epicenter location was provided in part 3. e) The California coastline should be plotted with a black line with a thickness of 2. Page 4 of 5
5 Part IV: What to Hand in? Like the previous lab, you should zip up all of your files and them to me as a single.zip file. Use the appropriate MATLAB command to zip everything into one file. Call your file lab6_lastname.zip. For your convenience, I have provided a list of the required files below. You should not include the data files. This would make your zip file too large to . I will have the data files available in the same directory as your programs and in the same format and with the same filenames as the files on the course website. Script Files: Function Files: processtemps.m, processeqs.m make3dgrid.m Page 5 of 5
LAB 2: DATA FILTERING AND NOISE REDUCTION
NAME: LAB TIME: LAB 2: DATA FILTERING AND NOISE REDUCTION In this exercise, you will use Microsoft Excel to generate several synthetic data sets based on a simplified model of daily high temperatures in
More informationMATLAB Introduction to MATLAB Programming
MATLAB Introduction to MATLAB Programming MATLAB Scripts So far we have typed all the commands in the Command Window which were executed when we hit Enter. Although every MATLAB command can be executed
More informationLAB 2: DATA FILTERING AND NOISE REDUCTION
NAME: LAB SECTION: LAB 2: DATA FILTERING AND NOISE REDUCTION In this exercise, you will use Microsoft Excel to generate several synthetic data sets based on a simplified model of daily high temperatures
More informationYears after US Student to Teacher Ratio
The goal of this assignment is to create a scatter plot of a set of data. You could do this with any two columns of data, but for demonstration purposes we ll work with the data in the table below. The
More informationMATH SPEAK - TO BE UNDERSTOOD AND MEMORIZED DETERMINING THE INTERSECTIONS USING THE GRAPHING CALCULATOR
FOM 11 T15 INTERSECTIONS & OPTIMIZATION PROBLEMS - 1 1 MATH SPEAK - TO BE UNDERSTOOD AND MEMORIZED 1) INTERSECTION = a set of coordinates of the point on the grid where two or more graphed lines touch
More informationTotal Number of Students in US (millions)
The goal of this technology assignment is to graph a formula on your calculator and in Excel. This assignment assumes that you have a TI 84 or similar calculator and are using Excel 2007. The formula you
More informationExamples, examples: Outline
Examples, examples: Outline Overview of todays exercises Basic scripting Importing data Working with temporal data Working with missing data Interpolation in 1D Some time series analysis Linear regression
More informationData needs to be prepped for loading into matlab.
Outline Preparing data sets CTD Data from Tomales Bay Clean up Binning Combined Temperature Depth plots T S scatter plots Multiple plots on a single figure What haven't you learned in this class? Preparing
More informationLines and Circles Guided Practice: Teacher Instructions
Lines and Circles Guided Practice: Teacher Instructions Overview 1. Together, as a class, go through the Lines and Circles Guided Practice (exercises 1-22) described below. 2. Then have student teams conduct
More informationLogical Subscripting: This kind of subscripting can be done in one step by specifying the logical operation as the subscripting expression.
What is the answer? >> Logical Subscripting: This kind of subscripting can be done in one step by specifying the logical operation as the subscripting expression. The finite(x)is true for all finite numerical
More informationLab 2. Vector and raster data.
Lab 2. Vector and raster data. The goal: To learn about the structure of the vector and raster data types. Objective: Create vector and raster datasets and visualize them. Software for the lab: ARCINFO,
More informationSeisVolE Teaching Modules Preliminary, Draft Instructions (L. Braile and S. Braile, 5/28/01,
SeisVolE Teaching Modules Preliminary, Draft Instructions (L. Braile and S. Braile, 5/28/01, www.eas.purdue.edu/~braile) 1. Make Your Own Map a. Open the view with that contains your area of interest (for
More informationCSci 1113, Fall 2015 Lab Exercise 7 (Week 8): Arrays! Strings! Recursion! Oh my!
CSci 1113, Fall 2015 Lab Exercise 7 (Week 8): Arrays! Strings! Recursion! Oh my! Recursion Recursion is an abstraction that is defined in terms of itself. Examples include mathematical abstractions such
More informationAppendix A. Introduction to MATLAB. A.1 What Is MATLAB?
Appendix A Introduction to MATLAB A.1 What Is MATLAB? MATLAB is a technical computing environment developed by The Math- Works, Inc. for computation and data visualization. It is both an interactive system
More informationMATHEMATICS CONCEPTS TAUGHT IN THE SCIENCE EXPLORER, FOCUS ON EARTH SCIENCE TEXTBOOK
California, Mathematics Concepts Found in Science Explorer, Focus on Earth Science Textbook (Grade 6) 1 11 Describe the layers of the Earth 2 p. 59-61 Draw a circle with a specified radius or diameter
More informationIntroduction to the Kinematics Tool
Introduction to the Kinematics Tool Author: Samantha Ross EarthByte Group, University of Sydney Introduction to the Kinematics Tool Aim Included Files Background Exercise 1 - Using the Kinematics Tool
More informationCSci 1113 Lab Exercise 6 (Week 7): Arrays & Strings
CSci 1113 Lab Exercise 6 (Week 7): Arrays & Strings Strings Representing textual information using sequences of characters is common throughout computing. Names, sentences, text, prompts, etc. all need
More informationExcel 2. Module 3 Advanced Charts
Excel 2 Module 3 Advanced Charts Revised 1/1/17 People s Resource Center Module Overview This module is part of the Excel 2 course which is for advancing your knowledge of Excel. During this lesson we
More informationEE168 Lab/Homework #1 Introduction to Digital Image Processing Handout #3
EE168 Lab/Homework #1 Introduction to Digital Image Processing Handout #3 We will be combining laboratory exercises with homework problems in the lab sessions for this course. In the scheduled lab times,
More informationIntroduction to MATLAB Programming. Chapter 3. Linguaggio Programmazione Matlab-Simulink (2017/2018)
Introduction to MATLAB Programming Chapter 3 Linguaggio Programmazione Matlab-Simulink (2017/2018) Algorithms An algorithm is the sequence of steps needed to solve a problem Top-down design approach to
More informationEOSC 352 MATLAB Review
EOSC 352 MATLAB Review To use MATLAB, you can either (1) type commands in the window (i.e., at the command line ) or (2) type in the name of a file you have made, whose name ends in.m and which contains
More information3.1 Conceptual Modeling
Quick Start Tutorials 35 3.1 Conceptual Modeling Conceptual Modeling Tutorial The following example is a quick walk through of the basics of building a conceptual model and converting this to a numerical
More informationMATLAB INTRODUCTION. Matlab can be used interactively as a super hand calculator, or, more powerfully, run using scripts (i.e., programs).
L A B 6 M A T L A B MATLAB INTRODUCTION Matlab is a commercial product that is used widely by students and faculty and researchers at UTEP. It provides a "high-level" programming environment for computing
More informationAdditional Plot Types and Plot Formatting
Additional Plot Types and Plot Formatting The xy plot is the most commonly used plot type in MAT- LAB Engineers frequently plot either a measured or calculated dependent variable, say y, versus an independent
More informationProf. Manoochehr Shirzaei. RaTlab.asu.edu
RaTlab.asu.edu Introduction To MATLAB Introduction To MATLAB This lecture is an introduction of the basic MATLAB commands. We learn; Functions Procedures for naming and saving the user generated files
More informationLab 7: Bedrock rivers and the relief structure of mountain ranges
Lab 7: Bedrock rivers and the relief structure of mountain ranges Objectives In this lab, you will analyze the relief structure of the San Gabriel Mountains in southern California and how it relates to
More informationDepartment of Chemical Engineering ChE-101: Approaches to Chemical Engineering Problem Solving MATLAB Tutorial Vb
Department of Chemical Engineering ChE-101: Approaches to Chemical Engineering Problem Solving MATLAB Tutorial Vb Making Plots with Matlab (last updated 5/29/05 by GGB) Objectives: These tutorials are
More informationArray Creation ENGR 1181 MATLAB 2
Array Creation ENGR 1181 MATLAB 2 Array Creation In The Real World Civil engineers store seismic data in arrays to analyze plate tectonics as well as fault patterns. These sets of data are critical to
More informationQUICK INTRODUCTION TO MATLAB PART I
QUICK INTRODUCTION TO MATLAB PART I Department of Mathematics University of Colorado at Colorado Springs General Remarks This worksheet is designed for use with MATLAB version 6.5 or later. Once you have
More informationChapter 3: Introduction to MATLAB Programming (4 th ed.)
Chapter 3: Introduction to MATLAB Programming (4 th ed.) Algorithms MATLAB scripts Input / Output o disp versus fprintf Graphs Read and write variables (.mat files) User-defined Functions o Definition
More informationIntro to GMT Part 1. Beth Meyers Matt Herman
Intro to GMT Part 1 Beth Meyers Matt Herman By the end of of this tutorial you will be able to create the following figures: By the end of of this tutorial you will be able to create the following figures:
More informationLaboratory 1 Introduction to MATLAB for Signals and Systems
Laboratory 1 Introduction to MATLAB for Signals and Systems INTRODUCTION to MATLAB MATLAB is a powerful computing environment for numeric computation and visualization. MATLAB is designed for ease of use
More informationChpt 1. Functions and Graphs. 1.1 Graphs and Graphing Utilities 1 /19
Chpt 1 Functions and Graphs 1.1 Graphs and Graphing Utilities 1 /19 Chpt 1 Homework 1.1 14, 18, 22, 24, 28, 42, 46, 52, 54, 56, 78, 79, 80, 82 2 /19 Objectives Functions and Graphs Plot points in the rectangular
More informationAdvanced Graphics: NOMAD Summer. Interactive analysis and visualization of complex datasets
NOMAD Summer A hands-on course on tools for novel-materials discovery September 25-29, 2017, Berlin Advanced Graphics: Interactive analysis and visualization of complex datasets Michele Compostella Markus
More informationHYDRUS (2D/3D) Computer Session
HYDRUS (2D/3D) Computer Session Three-Dimensional Water Flow and Solute Transport This tutorial considers water flow and solute transport in a simple three-dimensional transport domain. The transport domain
More informationTutorial: Conceptual Modeling Tutorial. Integrated Conceptual & Numerical Groundwater Modeling Software by Waterloo Hydrogeologic
Tutorial: Visual MODFLOW Flex 5.1 Integrated Conceptual & Numerical Groundwater Modeling Software 1 1 Visual MODFLOW Flex 5.1 The following example is a quick walk-through of the basics of building a conceptual
More informationSES 123 Global and Regional Energy Lab Worksheet
SES 123 Global and Regional Energy Lab Worksheet Introduction An important aspect to understand about our planet is global temperatures, including spatial variations, such as between oceans and continents
More informationLesson 8 - Practice Problems
Lesson 8 - Practice Problems Section 8.1: A Case for the Quadratic Formula 1. For each quadratic equation below, show a graph in the space provided and circle the number and type of solution(s) to that
More informationIntroduction to MATLAB
58:110 Computer-Aided Engineering Spring 2005 Introduction to MATLAB Department of Mechanical and industrial engineering January 2005 Topics Introduction Running MATLAB and MATLAB Environment Getting help
More informationPython Development Technical Note 4
Python Development Technical Note 4 Peter Higgins, October 1, 2018 Introduction Programmed data analysis, and resultant presentation graphics (especially done by me) needs to be accomplished without using
More informationMETIER Course n februray Introduction to ArcView 3
METIER Course n 2 Information Management in Environmental Sciences 19-23 februray 2007 Introduction to ArcView 3 tél : (33) 04 67 54 87 54 Maison de la Télédétection en Languedoc-Roussillon fax : (33)
More informationThis is the basis for the programming concept called a loop statement
Chapter 4 Think back to any very difficult quantitative problem that you had to solve in some science class How long did it take? How many times did you solve it? What if you had millions of data points
More informationDr. Iyad Jafar. Adapted from the publisher slides
Computer Applications Lab Lab 6 Plotting Chapter 5 Sections 1,2,3,8 Dr. Iyad Jafar Adapted from the publisher slides Outline xy Plotting Functions Subplots Special Plot Types Three-Dimensional Plotting
More informationQuadratics Functions: Review
Quadratics Functions: Review Name Per Review outline Quadratic function general form: Quadratic function tables and graphs (parabolas) Important places on the parabola graph [see chart below] vertex (minimum
More informationChapter 2 Surfer Tutorial
Chapter 2 Surfer Tutorial Overview This tutorial introduces you to some of Surfer s features and shows you the steps to take to produce maps. In addition, the tutorial will help previous Surfer users learn
More informationPetrel TIPS&TRICKS from SCM
Petrel TIPS&TRICKS from SCM Knowledge Worth Sharing Using the Make Simple Grid Process to Build Un faulted Frameworks Un faulted reservoirs are relatively rare but do occur and provide a wonderful break
More informationMath-2. Lesson 3-1. Equations of Lines
Math-2 Lesson 3-1 Equations of Lines How can an equation make a line? y = x + 1 x -4-3 -2-1 0 1 2 3 Fill in the rest of the table rule x + 1 f(x) -4 + 1-3 -3 + 1-2 -2 + 1-1 -1 + 1 0 0 + 1 1 1 + 1 2 2 +
More informationMATLAB. MATLAB Review. MATLAB Basics: Variables. MATLAB Basics: Variables. MATLAB Basics: Subarrays. MATLAB Basics: Subarrays
MATLAB MATLAB Review Selim Aksoy Bilkent University Department of Computer Engineering saksoy@cs.bilkent.edu.tr MATLAB Basics Top-down Program Design, Relational and Logical Operators Branches and Loops
More informationMechanical Engineering Department Second Year (2015)
Lecture 7: Graphs Basic Plotting MATLAB has extensive facilities for displaying vectors and matrices as graphs, as well as annotating and printing these graphs. This section describes a few of the most
More informationSTP, Unix, SAC tutorial, Ge167 Winter 2014
STP, Unix, SAC tutorial, Ge167 Winter 2014 Asaf Inbal 1 Downloading waveforms In this tutorial we ll learn how to download waveforms using a tool called STP (Seismic Transfer Program) and manipulate them
More informationMatlab Tutorial 1: Working with variables, arrays, and plotting
Matlab Tutorial 1: Working with variables, arrays, and plotting Setting up Matlab First of all, let's make sure we all have the same layout of the different windows in Matlab. Go to Home Layout Default.
More informationIntroduction to Google Earth
Introduction to Google Earth Assignment: The goal of this assignment is for you to become familiar with Google Earth. You may work alone or with a partner but you must turn in your own individual work.
More informationCan be put into the matrix form of Ax=b in this way:
Pre-Lab 0 Not for Grade! Getting Started with Matlab Introduction In EE311, a significant part of the class involves solving simultaneous equations. The most time efficient way to do this is through the
More informationIntroduction to MATLAB LAB 1
Introduction to MATLAB LAB 1 1 Basics of MATLAB MATrix LABoratory A super-powerful graphing calculator Matrix based numeric computation Embedded Functions Also a programming language User defined functions
More informationPASS Sample Size Software
Chapter 941 Introduction In PASS, it is easy to study power and sample size calculations for a range of possible parameter values. When at least 2 input parameters vary, you can create stunning 3D power
More information( you can also use "contourf" instead of "contour" for filled colors )
Assignment 3 Due: October 23 5pm 1. Two Dimensional Example. For the 2-D temperature field given by,, a) Evaluate the gradient,,. (do not use the "gradient" function in Matlab) b) Visualization 1: Surface
More informationPurpose of the lecture MATLAB MATLAB
Purpose of the lecture MATLAB Harri Saarnisaari, Part of Simulations and Tools for Telecommunication Course This lecture contains a short introduction to the MATLAB For further details see other sources
More information3D Surface Plots with Groups
Chapter 942 3D Surface Plots with Groups Introduction In PASS, it is easy to study power and sample size calculations for a range of possible parameter values. When at least 3 input parameters vary, you
More informationMATLAB for beginners. KiJung Yoon, 1. 1 Center for Learning and Memory, University of Texas at Austin, Austin, TX 78712, USA
MATLAB for beginners KiJung Yoon, 1 1 Center for Learning and Memory, University of Texas at Austin, Austin, TX 78712, USA 1 MATLAB Tutorial I What is a matrix? 1) A way of representation for data (# of
More informationIntroduction to GMT (Part 1)
Introduction to GMT (Part 1) An example of what you can make with GMT! Beth Meyers Matt Herman Last updated: 31 January 2018 Objectives Basic GMT commands psbasemap pscoast psxy GMT syntax and command
More informationExercise 1: An Overview of ArcMap and ArcCatalog
Exercise 1: An Overview of ArcMap and ArcCatalog Introduction: ArcGIS is an integrated collection of GIS software products for building a complete GIS. ArcGIS enables users to deploy GIS functionality
More informationINTRODUCTION TO MATLAB PLOTTING WITH MATLAB
1 INTRODUCTION TO MATLAB PLOTTING WITH MATLAB Plotting with MATLAB x-y plot Plotting with MATLAB MATLAB contains many powerful functions for easily creating plots of several different types. Command plot(x,y)
More informationSGLI Level-2 data Mati Kahru
SGLI Level-2 data Mati Kahru 2018 1 Working with SGLI Level-2 data Contents Working with SGLI Level-2 data... 1 1 Introduction... 1 2 Evaluating SGLI Level-2 data... 1 3 Finding match-ups in SGLI Level-2
More informationCE 549 Lab 1 - Linking Streamflow Data to a Gauging Station
CE 549 Lab 1 - Linking Streamflow Data to a Gauging Station Prepared by Venkatesh Merwade Lyles School of Civil Engineering, Purdue University vmerwade@purdue.edu January 2018 Objective The objective of
More informationIntroduction to Matlab
What is Matlab? Introduction to Matlab Matlab is software written by a company called The Mathworks (mathworks.com), and was first created in 1984 to be a nice front end to the numerical routines created
More informationPART 1 PROGRAMMING WITH MATHLAB
PART 1 PROGRAMMING WITH MATHLAB Presenter: Dr. Zalilah Sharer 2018 School of Chemical and Energy Engineering Universiti Teknologi Malaysia 23 September 2018 Programming with MATHLAB MATLAB Environment
More information2 T. x + 2 T. , T( x, y = 0) = T 1
LAB 2: Conduction with Finite Difference Method Objective: The objective of this laboratory is to introduce the basic steps needed to numerically solve a steady state two-dimensional conduction problem
More informationSystem Design for Visualizing Scientific Computations
25 Chapter 2 System Design for Visualizing Scientific Computations In Section 1.1 we defined five broad goals for scientific visualization. Specifically, we seek visualization techniques that 1. Can be
More informationQUICK FORECASTING OF TSUNAMI IN BALI AND NUSA TENGGARA REGIONS, BASED ON THE TSUNAMI DATABASE SYSTEM
QUICK FORECASTING OF TSUNAMI IN BALI AND NUSA TENGGARA REGIONS, BASED ON THE TSUNAMI DATABASE SYSTEM Titi HANDAYANI MEE0874 Supervisor: Yushiro FUJII ABSTRACT Tsunami database in Bali and Nusa Tenggara
More informationTechnology Assignment: Scatter Plots
The goal of this assignment is to create a scatter plot of a set of data. You could do this with any two columns of data, but for demonstration purposes we ll work with the data in the table below. You
More informationENV Laboratory 2: Graphing
Name: Date: Introduction It is often said that a picture is worth 1,000 words, or for scientists we might rephrase it to say that a graph is worth 1,000 words. Graphs are most often used to express data
More informationSTUDENT PAGES GIS Tutorial Treasure in the Treasure State
STUDENT PAGES GIS Tutorial Treasure in the Treasure State Copyright 2015 Bear Trust International GIS Tutorial 1 Exercise 1: Make a Hand Drawn Map of the School Yard and Playground Your teacher will provide
More informationProgramming 1. Script files. help cd Example:
Programming Until now we worked with Matlab interactively, executing simple statements line by line, often reentering the same sequences of commands. Alternatively, we can store the Matlab input commands
More informationLab 6: Graphical Methods
Lab 6: Graphical Methods 6.1 Introduction EGR 53L - Fall 2009 Lab this week is going to introduce graphical solution and presentation techniques as well as surface plots. 6.2 Resources The additional resources
More informationSession 3: Cartography in ArcGIS. Mapping population data
Exercise 3: Cartography in ArcGIS Mapping population data Background GIS is well known for its ability to produce high quality maps. ArcGIS provides useful tools that allow you to do this. It is important
More informationCalifornia Earthquake Clearinghouse. After Action Report: March 28, 2014, M 5.1 La Habra Earthquake Clearinghouse Activation
California Earthquake Clearinghouse After Action Report: March 28, 2014, M 5.1 La Habra Earthquake Clearinghouse Activation Notification received at 9:11 p.m. via text from USGS Earthquake Notification
More informationPLATE TECTONICS DATA VIEWER Developed by Claudia Owen and Eric Sproles
PLATE TECTONICS DATA VIEWER Developed by Claudia Owen and Eric Sproles What is a Data Viewer? A data viewer is a program to view maps on the Internet that were generated by a Geographic Information System
More informationArray Creation ENGR 1187 MATLAB 2
Array Creation ENGR 1187 MATLAB 2 Today s Topics Arrays: What are they? Vectors Matrices Creating Arrays Today s Topics Arrays: What are they? Vectors Matrices Creating Arrays Arrays: What are they? Before
More informationMATLAB GUIDE UMD PHYS375 FALL 2010
MATLAB GUIDE UMD PHYS375 FALL 200 DIRECTORIES Find the current directory you are in: >> pwd C:\Documents and Settings\ian\My Documents\MATLAB [Note that Matlab assigned this string of characters to a variable
More informationClasses 7-8 (4 hours). Graphics in Matlab.
Classes 7-8 (4 hours). Graphics in Matlab. Graphics objects are displayed in a special window that opens with the command figure. At the same time, multiple windows can be opened, each one assigned a number.
More informationPyPlot. The plotting library must be imported, and we will assume in these examples an import statement similar to those for numpy and math as
Geog 271 Geographic Data Analysis Fall 2015 PyPlot Graphicscanbeproducedin Pythonviaavarietyofpackages. We willuseapythonplotting package that is part of MatPlotLib, for which documentation can be found
More informationOverview. Lecture 13: Graphics and Visualisation. Graphics & Visualisation 2D plotting. Graphics and visualisation of data in Matlab
Overview Lecture 13: Graphics and Visualisation Graphics & Visualisation 2D plotting 1. Plots for one or multiple sets of data, logarithmic scale plots 2. Axis control & Annotation 3. Other forms of 2D
More informationApplication Note: Multipoint Calibration Primer
1001766 R01- Revised 13Jan04 Application Note: Multipoint Calibration Primer Introduction PNI Corporation s Magneto-Inductive (MI) sensors are based on patented technology that delivers breakthrough, cost-effective
More informationPart 6b: The effect of scale on raster calculations mean local relief and slope
Part 6b: The effect of scale on raster calculations mean local relief and slope Due: Be done with this section by class on Monday 10 Oct. Tasks: Calculate slope for three rasters and produce a decent looking
More informationEE 301 Signals & Systems I MATLAB Tutorial with Questions
EE 301 Signals & Systems I MATLAB Tutorial with Questions Under the content of the course EE-301, this semester, some MATLAB questions will be assigned in addition to the usual theoretical questions. This
More informationORION 2 Reference Manual. Computational Biomedicine Lab Department of Mathematics University of Houston
ORION 2 Reference Manual Computational Biomedicine Lab Department of Mathematics University of Houston CHAPTER 1 Introduction ORION II is an application for the automatic segmentation and tracing of three-dimensional
More informationIntroduction to Matlab. By: Hossein Hamooni Fall 2014
Introduction to Matlab By: Hossein Hamooni Fall 2014 Why Matlab? Data analytics task Large data processing Multi-platform, Multi Format data importing Graphing Modeling Lots of built-in functions for rapid
More informationLesson 8: Graphs and Graphing Linear Equations
A critical skill required for the study of algebra is the ability to construct and interpret graphs. In this lesson we will learn how the Cartesian plane is used for constructing graphs and plotting data.
More informationFundamentals of Structural Geology Exercise: concepts from chapter 2
0B Reading: Fundamentals of Structural Geology, Ch 2 1) Develop a MATLAB script that plots the spherical datum (Fig. 2.1a) with unit radius as a wire-frame diagram using lines of constant latitude and
More informationComputer Graphics Prof. Sukhendu Das Dept. of Computer Science and Engineering Indian Institute of Technology, Madras Lecture - 14
Computer Graphics Prof. Sukhendu Das Dept. of Computer Science and Engineering Indian Institute of Technology, Madras Lecture - 14 Scan Converting Lines, Circles and Ellipses Hello everybody, welcome again
More informationNew demands on the modeling of the continental shelf require the need for 3D graphics connected to seismic interpretation of seabed sediments.
A New Approach to Mapping of the Continental Shelf Olav Egeland Manager of GeoCap AS, Norway. Website: www.geocap.no Email: olav.egeland@geocap.no Abstract New demands on the modeling of the continental
More informationLesson 6 - Practice Problems
Lesson 6 - Practice Problems Section 6.1: Characteristics of Quadratic Functions 1. For each of the following quadratic functions: Identify the coefficients a, b and c. Determine if the parabola opens
More information58th ANNUAL HIGH SCHOOL HONORS MATHEMATICS CONTEST
58th ANNUAL HIGH SCHOOL HONORS MATHEMATICS CONTEST April 18, 015 on the campus of the University of California, San Diego PART I ANSWER KEY 1. (D) 14. (B). (A) 15. (A) 3. (E) 16. (C) 4. (B) 17. (A) 5.
More informationTutorial 2. Modeling Periodic Flow and Heat Transfer
Tutorial 2. Modeling Periodic Flow and Heat Transfer Introduction: Many industrial applications, such as steam generation in a boiler or air cooling in the coil of an air conditioner, can be modeled as
More informationPyPlot. The plotting library must be imported, and we will assume in these examples an import statement similar to those for numpy and math as
Geog 271 Geographic Data Analysis Fall 2017 PyPlot Graphicscanbeproducedin Pythonviaavarietyofpackages. We willuseapythonplotting package that is part of MatPlotLib, for which documentation can be found
More informationHomework Project #1. Math 365
Homework Project # Math 365 For this homework, you are asked to write several files to disk using the function write file. For example, to save an array v to the file mysoln.out, use the command write_file(v,
More informationIntroduction to ArcGIS Desktop
Introduction to ArcGIS Desktop Prepared by David R. Maidment Center for Research in Water Resources University of Texas at Austin September 2011 Contents Goals of the Exercise Computer and Data Requirements
More informationChapter 6 Project: A New Model for Earthquakes
Chapter 6 Project: A New Model for Earthquakes Name Name 1. Background: Faults are approximately planar breaks in the Earth's crust and mantle. Crustal blocks moving quickly along a fault produce vibrations
More informationTransactions, SMiRT-22 San Francisco, California, August 18-23, 2013 Division 5
Transactions, SMiRT-22 San Francisco, California, August 18-23, 2013 LACK OF CORRELATION (INCOHERENCE) MODELING AND EFFECTS FROM REALISTIC 3D, INCLINED, BODY AND SURFACE SEISMIC MOTIONS N. Tafazzoli 1,
More informationIntroduction to XPPAUT Lab
Introduction to XPPAUT Lab Anna M. Barry March 10, 2011 Abstract In this lab, we will explore the Lorenz model from the xppall/ode file that was downloaded with XPPAUT. We will make a bifurcation diagram
More information