MultiRef Step by Step Guide Page 1 of 7

Size: px
Start display at page:

Download "MultiRef Step by Step Guide Page 1 of 7"

Transcription

1 MultiRef Step by Step Guide Page 1 of 7 1 Introduction This guide serves as a step by step guide to the installation and set-up of MultiRef as well running refinements on the example dataset provided. Instructions in MATLAB are based on MATLAB R2015a. 2 Obtaining the software The MultiRef Software framework and the example data can be downloaded through the MultiRef website: GSAS with EXPGUID can be downloaded directly from the Advanced Photon Source s website: 3 Installation 3.1 MATLAB If you do not already have a version of MATLAB installed it can be acquired through Mathworks: GSAS Install GSAS using the instructions provided from the download site, preferentially to a location such as C:/GSAS 3.3 MultiRef The MultiRef zip file must be extracted to a convenient location such as C:/MultiRef/mfiles and the folder (including subfolders) must be added to MATLABs search path: Home Set Path Add With Subfolders (Figure 1) Figure 1 4 Example Dataset - MultiRef 4.1 Preparation of files The example dataset must be extracted using e.g. 7-zip. In order to be extracted correctly the files must be numbered XYZ.zip.001, XYZ.zip.002, XYZ.zip.003 and XYZ.zip.004. The files for the example dataset should be placed in a single folder together such as C:/MultiRef/ExampleData with the three executables from the GSAS exe-folder (e.g. C:/GSAS/exe) genles.exe, hstdmp.exe and powpref.exe.

2 MultiRef Step by Step Guide Page 2 of 7 A list of the files that should be located in the folder is seen in Figure 2. Figure 2 The files are: genles.exe: GSAS program, which performs the least square calculations. hstdmp.exe: GSAS program, which is used for plotting the results of an EXP file using plotmodel.m. powpref.exe: GSAS program, which is used for preparing the EXP for refinement. IM_RECON_PK.EXP: GSAS experiment file containing the starting model used by MultiRef for refinement. This file has to be made manually in GSAS by refining representative datasets. im_recon_pk.mat: MATLAB data file containing the data used for the example dataset. two_theta.mat: MATLAB data file containing the 2theta values which match the intensity data in im_recon_pk.mat. x_back.mat: MATLAB data file containing a list of 2theta values where there are no peaks in the data. These are used when calculating a background and can be selected using select_background.m makechoice.m: MATLAB script which is called by MultiRef.m when a choice of refinement route has to be made. This has to be written specifically for the experiment investigated. MultiPlot.m: MATLAB script used to plot the results. MultiRef.m: MATLAB script used to perform the Rietveld refinements. MultiSave.m: MATLAB script used to save the results from MultiRef.m. hstinput.txt: Text file used as input to hstdmp.exe when plotting results. killpowpref: Batch script monitoring powpref.exe. In rare cases, usually when the model is a very poor fit to the data or when powpref.exe is running on a non-converged dataset, powpref.exe will enter an infinite loop (running for more than 1 minute). When this happens killpowpref will close this instance of powpref.exe and MultiRef.m will continue.

3 MultiRef Step by Step Guide Page 3 of Setting up and Running MultiRef.m User Input In this section the basic inputs to the refinement are given. The following lines should be edited and/or checked: Line 6, folder: The location of the files mentioned in section 4.1. Line 8, insfile: The name of the instrument file. Line 10, expfilename: The name of the experiment file without the.exp ending. Line 13, nrowstotal: The total number of rows. Line 15, rows: The row numbers, which will identify the correct row in a matrix or a file number. Line 17, ncolstotal: The total number of columns. Line 19, cols: The column numbers, which will identify the correct column in a matrix or a file number. Line 24, offset: The offset is used when performing partial runs (all columns, some rows). On large datasets it can be an advantage not to run all refinements in one step, but split it into different runs. In order to write the results to the correct positions in the output matrices an offset is used. For example, if your dataset consist of the rows , then put in rows(1)-1253 and when you run on only the lines the results will be written to the correct positions in the matrices. Line 27, npar: The number of parallel threads to be used when running in parallel. The maximum number is the number of CPUs on your computer. Line 30, ncyc: The number of refinement cycles to be performed. Line 33, choicemdim: The dimension of the choice matrix i.e. the number of choices made for a dataset. Two additional inputs are given for the example dataset considered: Line 37-38: The 2theta values are not included in the loaded data files and constant for all data points. These are loaded and converted here. Line 42: A list of background points where no reflections are present are loaded. These have been selected using select_background.m. These are used when calculating the background. See Figure 3 for the points used to calculate the background for diffractograms from the example dataset.

4 MultiRef Step by Step Guide Page 4 of 7 Figure Control Handles As seen in Figure 4 these are handles to control what should be performed by MultiRef. Each handle is set by inputting 1/0 as a true/false statement on whether to perform each step. Start out by setting all handles to 0 except for showgsasinfo and createdatafile. Figure Initialization In this section variables are initialized, files are copied, the parallel pool is started and information from the EXP file is loaded. In principle no user input required here. The user is encouraged to go through the code line by line and understand what happens.

5 MultiRef Step by Step Guide Page 5 of Run Loops In this section the code loops through the two refinement loops, an outer one for the rows and an inner one for the columns. For each data point the correct data should be given in a format readable by GSAS and the refinement should be performed with the correct parameters enabled User Input Depending on the type of data supplied the data file for GSAS can be written by MultiRef to the savefolder (createdatafile = 1), copied to the savefolder (copydatafile = 1) or already located in the folder (createdatafile = 0, copydatafile = 0). In the case of the example dataset the data file has to be created for each data point. In order to create the data file the 2theta, intensity and error estimates has to be supplied as vectors. In MultiRef this is done by first creating a string with the filename of the data file in line 152, loading the data in line 155, selecting the intensity data for the current data point in line 158, checking for NaN s in line 159 and estimating the errors from intensity in line 162. Once these calculations have been performed then in line 165 the intensity data can be written to the data file using the data2fxye.m script. The 2theta data was loaded in the beginning of the script. After the user input a Chebyshev background is fitted to a selected subset of data points if the user has selected this option. If calculating a Chebyshev background with MultiRef, MATLAB might show a warning similar to this: Warning: Polynomial is badly conditioned. Remove repeated data points or try centering and scaling as described in HELP POLYFIT. This is not important for the fitting of the Chebyshev polynomium and can be suppressed by commenting out line 75 in MATLABs polyfit function (which Chebfun s polyfit uses). The function can be found at a location similar to C:\Program Files\MATLAB\R2015a\toolbox\matlab\polyfun\polyfit.m. Depending on your MATLAB configuration it might be necessary to allow the current Windows user to modify the file through the right click menu. Right Click Properties Security Select User Tick Full Control Run Refinements In this section the Rietveld refinements are performed. This is done by reading the input GSAS experiment (EXP) file line by line, editing it if necessary and then writing it to a new EXP file. In line 206 and 207 the input and output EXP files are defined. rungsas.m is called in line 209. This function edits the EXP file and then runs the GSAS executables. If the refinement finishes successfully then rungsas.m outputs 1 and otherwise 0. This can be used to identify data points, where the MultiRef refinement did not converge. When calling rungsas.m some fixed inputs are followed by a variable number of inputs. The variable inputs are used to select how to edit the EXP file. The possible inputs can be found in the rungsas.m script and in Figure 5. This is not an exhaustive list additional possibilities can easily be created using the existing as templates.

6 MultiRef Step by Step Guide Page 6 of 7 Figure 5 In the example dataset two cycles of refinements are carried out and between these a choice is made. In the first refinement cycle two variable inputs are given. The first inserts the name of the data file in the EXP file and the second inserts the previously calculated Chebyshev background coefficients. The refinement of the scale factor and the background is enabled in the input EXP file and these are then refined. After the first refinement cycle, the results are inspected in the makechoice.m function, where the scale factor is compared to the estimated standard deviation of the scale factor to determine whether material is present at the current data point. If this is the case then the second refinement cycle is performed. In the second cycle the refinement of unit cell parameters and profile parameters is enabled Clean Up In this section temporary files are deleted and results are saved. In principle no user input required here. The user is encouraged to go through the code line by line and understand what happens. 5 Example Data Set MultiSave The function MultiSave is used to read the results from the refinements and store them in a file easily readable by MATLAB. In the beginning of the script basic inputs are given about the data to load. The following lines should be edited and/or checked. In this section the basic inputs to the refinement are given. The following lines should be edited: Line 5, rows: The row numbers, which will identify the correct row in a matrix or a file number. Line 7, cols: The column numbers, which will identify the correct column in a matrix or a file number. Line 9, PVEfile: The name of the PVE file without the.pve-ending Line 13, Nvars: the maximum number of variables in the PVE files. This is used to initialize the matrix where the results are saved. Line 16, mainfolder: The folder where the folders from the refinements are found. Line 19, ncyc: The number of refinement cycles performed.

7 MultiRef Step by Step Guide Page 7 of 7 6 Example Data Set MultiPlot MultiPlot serves as an example of how 2D datasets refined with MultiRef can be visualized using MATLAB. It is divided into the following sections: Initialization: In this section the output files from MultiSave are loaded Define mask: Here a mask used when plotting the data is made. Depending on the data investigated the mask can be created using different criteria such as, geometry, goodness-of-fit parameters or refined parameters. ChoiceM: Plot of the choice(s) made. For the example data this is a binary plot. Rwp & Rp: Plot the goodness-of-fit parameters to check the quality and consistency of the fits. Parameter plotting: Select refined parameters and plot them. The parameters are identified by their name in the PVE-files and plotted. The header of the plot should also be updated together with the interval for the colorbar. Integrated Background: The integrated background intensity is calculated from the Chebyshev coefficients. The number of coefficients and the range of the data used for refinement can be loaded from the EXP file or input manually. Additionally, the 2theta values must be supplied.

Getting Started with MATLAB

Getting Started with MATLAB APPENDIX B Getting Started with MATLAB MATLAB software is a computer program that provides the user with a convenient environment for many types of calculations in particular, those that are related to

More information

MATLAB. Devon Cormack and James Staley

MATLAB. Devon Cormack and James Staley MATLAB Devon Cormack and James Staley MATrix LABoratory Originally developed in 1970s as a FORTRAN wrapper, later rewritten in C Designed for the purpose of high-level numerical computation, visualization,

More information

CS1114: Matlab Introduction

CS1114: Matlab Introduction CS1114: Matlab Introduction 1 Introduction The purpose of this introduction is to provide you a brief introduction to the features of Matlab that will be most relevant to your work in this course. Even

More information

Introduction to Scientific Computing with Matlab

Introduction to Scientific Computing with Matlab UNIVERSITY OF WATERLOO Introduction to Scientific Computing with Matlab SAW Training Course R. William Lewis Computing Consultant Client Services Information Systems & Technology 2007 Table of Contents

More information

MATLAB 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 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 information

Using Replicas. RadExPro

Using Replicas. RadExPro Using Replicas RadExPro 2018.1 Replicas are copies of one and the same flow executed with different sets of module parameters. Sets of parameters for each replica are taken from variables defined in a

More information

Introduction to MATLAB

Introduction to MATLAB Introduction to MATLAB What you will learn The most important commands (from my view) Writing scripts (.m files) Defining MATLAB variables Matrix/array operations Importing and extracting data 2D plots

More information

TUTORIAL. HCS- Tools + Scripting Integrations

TUTORIAL. HCS- Tools + Scripting Integrations TUTORIAL HCS- Tools + Scripting Integrations HCS- Tools... 3 Setup... 3 Task and Data... 4 1) Data Input Opera Reader... 7 2) Meta data integration Expand barcode... 8 3) Meta data integration Join Layout...

More information

PhenoRipper Documentation

PhenoRipper Documentation PhenoRipper Documentation PhenoRipper Installation Windows We provide 32 bits and 64 bits installers. Choose the one that corresponds to your operating system, double click on it and follow the installer

More information

Programming Exercise 3: Multi-class Classification and Neural Networks

Programming Exercise 3: Multi-class Classification and Neural Networks Programming Exercise 3: Multi-class Classification and Neural Networks Machine Learning Introduction In this exercise, you will implement one-vs-all logistic regression and neural networks to recognize

More information

Introduction to Matlab

Introduction to Matlab Introduction to Matlab Roger Hansen (rh@fys.uio.no) PGP, University of Oslo September 2004 Introduction to Matlab p.1/22 Contents Programming Philosophy What is Matlab? Example: Linear algebra Example:

More information

ARRAY VARIABLES (ROW VECTORS)

ARRAY VARIABLES (ROW VECTORS) 11 ARRAY VARIABLES (ROW VECTORS) % Variables in addition to being singular valued can be set up as AN ARRAY of numbers. If we have an array variable as a row of numbers we call it a ROW VECTOR. You can

More information

Processing each single plane

Processing each single plane , Sept 30th, 2007 Performing a multiplane calibration on the dataset 07.07.09ptvsample The sample dataset is calibrated on a planar target imaged at three different heights; the procedure consists in the

More information

Design of Experiments

Design of Experiments Seite 1 von 1 Design of Experiments Module Overview In this module, you learn how to create design matrices, screen factors, and perform regression analysis and Monte Carlo simulation using Mathcad. Objectives

More information

CS1114: Matlab Introduction

CS1114: Matlab Introduction CS1114: Matlab Introduction 1 Introduction The purpose of this introduction is to provide you a brief introduction to the features of Matlab that will be most relevant to your work in this course. Even

More information

Parallel and Distributed Computing with MATLAB Gerardo Hernández Manager, Application Engineer

Parallel and Distributed Computing with MATLAB Gerardo Hernández Manager, Application Engineer Parallel and Distributed Computing with MATLAB Gerardo Hernández Manager, Application Engineer 2018 The MathWorks, Inc. 1 Practical Application of Parallel Computing Why parallel computing? Need faster

More information

MIKE URBAN Tools. Result Verification. Comparison between results

MIKE URBAN Tools. Result Verification. Comparison between results MIKE URBAN Tools Result Verification Comparison between results MIKE 2017 DHI headquarters Agern Allé 5 DK-2970 Hørsholm Denmark +45 4516 9200 Telephone +45 4516 9333 Support +45 4516 9292 Telefax mike@dhigroup.com

More information

EGR 102 Introduction to Engineering Modeling. Lab 05A Managing Data

EGR 102 Introduction to Engineering Modeling. Lab 05A Managing Data EGR 102 Introduction to Engineering Modeling Lab 05A Managing Data 1 Overview Review Structured vectors in MATLAB Creating Vectors/arrays:» Linspace» Colon operator» Concatenation Initializing variables

More information

Automated AFM Image Processing User Manual

Automated AFM Image Processing User Manual Automated AFM Image Processing User Manual Starting The Program Open and run the GUI_run_me.m script in Matlab to start the program. The first thing to do is to select the folder that contains the images

More information

Introduction to R Programming

Introduction to R Programming Course Overview Over the past few years, R has been steadily gaining popularity with business analysts, statisticians and data scientists as a tool of choice for conducting statistical analysis of data

More information

Louis Fourrier Fabien Gaie Thomas Rolf

Louis Fourrier Fabien Gaie Thomas Rolf CS 229 Stay Alert! The Ford Challenge Louis Fourrier Fabien Gaie Thomas Rolf Louis Fourrier Fabien Gaie Thomas Rolf 1. Problem description a. Goal Our final project is a recent Kaggle competition submitted

More information

A. Matrix-wise and element-wise operations

A. Matrix-wise and element-wise operations USC GSBME MATLAB CLASS Reviewing previous session Second session A. Matrix-wise and element-wise operations A.1. Matrix-wise operations So far we learned how to define variables and how to extract data

More information

Table of Contents. Introduction.*.. 7. Part /: Getting Started With MATLAB 5. Chapter 1: Introducing MATLAB and Its Many Uses 7

Table of Contents. Introduction.*.. 7. Part /: Getting Started With MATLAB 5. Chapter 1: Introducing MATLAB and Its Many Uses 7 MATLAB Table of Contents Introduction.*.. 7 About This Book 1 Foolish Assumptions 2 Icons Used in This Book 3 Beyond the Book 3 Where to Go from Here 4 Part /: Getting Started With MATLAB 5 Chapter 1:

More information

Package erp.easy. March 2, 2017

Package erp.easy. March 2, 2017 Type Package Package erp.easy March 2, 2017 Title Event-Related Potential (ERP) Data Exploration Made Easy Version 1.1.0 URL https://github.com/mooretm/erp.easy A set of user-friendly functions to aid

More information

Numerical Methods for PDEs : Video 11: 1D FiniteFebruary Difference 15, Mappings Theory / 15

Numerical Methods for PDEs : Video 11: 1D FiniteFebruary Difference 15, Mappings Theory / 15 22.520 Numerical Methods for PDEs : Video 11: 1D Finite Difference Mappings Theory and Matlab February 15, 2015 22.520 Numerical Methods for PDEs : Video 11: 1D FiniteFebruary Difference 15, Mappings 2015

More information

Contents. Implementing the QR factorization The algebraic eigenvalue problem. Applied Linear Algebra in Geoscience Using MATLAB

Contents. Implementing the QR factorization The algebraic eigenvalue problem. Applied Linear Algebra in Geoscience Using MATLAB Applied Linear Algebra in Geoscience Using MATLAB Contents Getting Started Creating Arrays Mathematical Operations with Arrays Using Script Files and Managing Data Two-Dimensional Plots Programming in

More information

University of Alberta

University of Alberta A Brief Introduction to MATLAB University of Alberta M.G. Lipsett 2008 MATLAB is an interactive program for numerical computation and data visualization, used extensively by engineers for analysis of systems.

More information

Programming Exercise 1: Linear Regression

Programming Exercise 1: Linear Regression Programming Exercise 1: Linear Regression Machine Learning Introduction In this exercise, you will implement linear regression and get to see it work on data. Before starting on this programming exercise,

More information

SPA_GUI. Matlab graphical user interface allowing signal processing and. variable selection for multivariate calibration.

SPA_GUI. Matlab graphical user interface allowing signal processing and. variable selection for multivariate calibration. Matlab graphical user interface allowing signal processing and variable selection for multivariate calibration. www.ele.ita.br/~kawakami/spa January/2012 About SPA_GUI SPA_GUI is a Matlab graphical user

More information

MATLAB Programming for Numerical Computation Dr. Niket Kaisare Department Of Chemical Engineering Indian Institute of Technology, Madras

MATLAB Programming for Numerical Computation Dr. Niket Kaisare Department Of Chemical Engineering Indian Institute of Technology, Madras MATLAB Programming for Numerical Computation Dr. Niket Kaisare Department Of Chemical Engineering Indian Institute of Technology, Madras Module No. #01 Lecture No. #1.1 Introduction to MATLAB programming

More information

Apparo Fast Edit. File Up&Download 1 / 9

Apparo Fast Edit. File Up&Download 1 / 9 Apparo Fast Edit File Up&Download 1 / 9 Table of content 1 2 Definition 3 Properties of the widget File Upload/Download 3 2.1 Mapping & Other 4 2.1.1 Order by Priority 4 2.1.2 Column Name 4 2.1.3 File

More information

To Plot a Graph in Origin. Example: Number of Counts from a Geiger- Müller Tube as a Function of Supply Voltage

To Plot a Graph in Origin. Example: Number of Counts from a Geiger- Müller Tube as a Function of Supply Voltage To Plot a Graph in Origin Example: Number of Counts from a Geiger- Müller Tube as a Function of Supply Voltage 1 Digression on Error Bars What entity do you use for the magnitude of the error bars? Standard

More information

MATLAB Basics. Configure a MATLAB Package 6/7/2017. Stanley Liang, PhD York University. Get a MATLAB Student License on Matworks

MATLAB Basics. Configure a MATLAB Package 6/7/2017. Stanley Liang, PhD York University. Get a MATLAB Student License on Matworks MATLAB Basics Stanley Liang, PhD York University Configure a MATLAB Package Get a MATLAB Student License on Matworks Visit MathWorks at https://www.mathworks.com/ It is recommended signing up with a student

More information

Constraint-based Metabolic Reconstructions & Analysis H. Scott Hinton. Matlab Tutorial. Lesson: Matlab Tutorial

Constraint-based Metabolic Reconstructions & Analysis H. Scott Hinton. Matlab Tutorial. Lesson: Matlab Tutorial 1 Matlab Tutorial 2 Lecture Learning Objectives Each student should be able to: Describe the Matlab desktop Explain the basic use of Matlab variables Explain the basic use of Matlab scripts Explain the

More information

Vector: A series of scalars contained in a column or row. Dimensions: How many rows and columns a vector or matrix has.

Vector: A series of scalars contained in a column or row. Dimensions: How many rows and columns a vector or matrix has. ASSIGNMENT 0 Introduction to Linear Algebra (Basics of vectors and matrices) Due 3:30 PM, Tuesday, October 10 th. Assignments should be submitted via e-mail to: matlabfun.ucsd@gmail.com You can also submit

More information

Software Documentation of the Potential Support Vector Machine

Software Documentation of the Potential Support Vector Machine Software Documentation of the Potential Support Vector Machine Tilman Knebel and Sepp Hochreiter Department of Electrical Engineering and Computer Science Technische Universität Berlin 10587 Berlin, Germany

More information

Matlab Practice Sessions

Matlab Practice Sessions Matlab Practice Sessions 1. Getting Started Startup Matlab Observe the following elements of the desktop; Command Window Current Folder Window Command History Window Workspace Window Notes: If you startup

More information

A Guide to Using Some Basic MATLAB Functions

A Guide to Using Some Basic MATLAB Functions A Guide to Using Some Basic MATLAB Functions UNC Charlotte Robert W. Cox This document provides a brief overview of some of the essential MATLAB functionality. More thorough descriptions are available

More information

Matlab Tutorial. The value assigned to a variable can be checked by simply typing in the variable name:

Matlab Tutorial. The value assigned to a variable can be checked by simply typing in the variable name: 1 Matlab Tutorial 1- What is Matlab? Matlab is a powerful tool for almost any kind of mathematical application. It enables one to develop programs with a high degree of functionality. The user can write

More information

Data needs to be prepped for loading into matlab.

Data 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 information

Heat Exchanger Efficiency

Heat Exchanger Efficiency 6 Heat Exchanger Efficiency Flow Simulation can be used to study the fluid flow and heat transfer for a wide variety of engineering equipment. In this example we use Flow Simulation to determine the efficiency

More information

Padaco Instruction Manual

Padaco Instruction Manual Padaco Instruction Manual 1. Welcome 1.1. Introduction This instruction manual will lead you through the steps of using Padaco in combination with a tutorial dataset. Padaco is a data visualization and

More information

Dynamic Clustering in WSN

Dynamic Clustering in WSN Dynamic Clustering in WSN Software Recommended: NetSim Standard v11.1 (32/64 bit), Visual Studio 2015/2017, MATLAB (32/64 bit) Project Download Link: https://github.com/netsim-tetcos/dynamic_clustering_project_v11.1/archive/master.zip

More information

IADS Batch Server User Guide. Version July 2014 SYMVIONICS Document SSD-IADS SYMVIONICS, Inc. All rights reserved.

IADS Batch Server User Guide. Version July 2014 SYMVIONICS Document SSD-IADS SYMVIONICS, Inc. All rights reserved. IADS Batch Server User Guide Version 8.1.2 July 2014 SYMVIONICS Document SSD-IADS-152 1996-2018 SYMVIONICS, Inc. All rights reserved. Table of Contents 1. IADS Batch Server...1 1.1. Batch Server... 1 1.2.

More information

Machine Learning A W 1sst KU. b) [1 P] Give an example for a probability distributions P (A, B, C) that disproves

Machine Learning A W 1sst KU. b) [1 P] Give an example for a probability distributions P (A, B, C) that disproves Machine Learning A 708.064 11W 1sst KU Exercises Problems marked with * are optional. 1 Conditional Independence I [2 P] a) [1 P] Give an example for a probability distribution P (A, B, C) that disproves

More information

FlowJo Software Lecture Outline:

FlowJo Software Lecture Outline: FlowJo Software Lecture Outline: Workspace Basics: 3 major components 1) The Ribbons (toolbar) The availability of buttons here can be customized. *One of the best assets of FlowJo is the help feature*

More information

Collect and Reduce Intensity Data Photon II

Collect and Reduce Intensity Data Photon II Collect and Reduce Intensity Data Photon II General Steps in Collecting Intensity Data Note that the steps outlined below are generally followed when using all modern automated diffractometers, regardless

More information

Parallel and Distributed Computing with MATLAB The MathWorks, Inc. 1

Parallel and Distributed Computing with MATLAB The MathWorks, Inc. 1 Parallel and Distributed Computing with MATLAB 2018 The MathWorks, Inc. 1 Practical Application of Parallel Computing Why parallel computing? Need faster insight on more complex problems with larger datasets

More information

Using Origin from LabVIEW

Using Origin from LabVIEW Using Origin from LabVIEW Copyright 2014 by OriginLab Corporation All rights reserved. No part of the contents of this book may be reproduced or transmitted in any form or by any means without the written

More information

Writing MATLAB Programs

Writing MATLAB Programs Outlines September 14, 2004 Outlines Part I: Review of Previous Lecture Part II: Review of Previous Lecture Outlines Part I: Review of Previous Lecture Part II: Control Structures If/Then/Else For Loops

More information

Computational Photonics, Seminar 01 on Introduction into MATLAB, Page 1

Computational Photonics, Seminar 01 on Introduction into MATLAB, Page 1 Computational Photonics, Seminar 0 on Introduction into MATLAB,.04.06 Page Introduction to MATLAB Operations on scalar variables >> a=6 6 Pay attention to the response from the workspace >> b= b = >> a+b

More information

Stokes Modelling Workshop

Stokes Modelling Workshop Stokes Modelling Workshop 14/06/2016 Introduction to Matlab www.maths.nuigalway.ie/modellingworkshop16/files 14/06/2016 Stokes Modelling Workshop Introduction to Matlab 1 / 16 Matlab As part of this crash

More information

EL2310 Scientific Programming

EL2310 Scientific Programming (pronobis@kth.se) Overview Overview Wrap Up More on Scripts and Functions Basic Programming Lecture 2 Lecture 3 Lecture 4 Wrap Up Last time Loading data from file: load( filename ) Graphical input and

More information

«DIMRUS» «Inva (Portable)» User Manual

«DIMRUS» «Inva (Portable)» User Manual «DIMRUS» «Inva (Portable)» User Manual Contents 1. Purposes of «Inva (Portable)» software... 3 1.1. Required components... 3 2. Working with «Inva (Portable)» software... 4 2.1. Starting the program. Connecting

More information

Introduction to MATLAB for Numerical Analysis and Mathematical Modeling. Selis Önel, PhD

Introduction to MATLAB for Numerical Analysis and Mathematical Modeling. Selis Önel, PhD Introduction to MATLAB for Numerical Analysis and Mathematical Modeling Selis Önel, PhD Advantages over other programs Contains large number of functions that access numerical libraries (LINPACK, EISPACK)

More information

C/C++ Programming for Engineers: Matlab Branches and Loops

C/C++ Programming for Engineers: Matlab Branches and Loops C/C++ Programming for Engineers: Matlab Branches and Loops John T. Bell Department of Computer Science University of Illinois, Chicago Review What is the difference between a script and a function in Matlab?

More information

Box-Cox Transformation

Box-Cox Transformation Chapter 190 Box-Cox Transformation Introduction This procedure finds the appropriate Box-Cox power transformation (1964) for a single batch of data. It is used to modify the distributional shape of a set

More information

MATLAB Project: Getting Started with MATLAB

MATLAB Project: Getting Started with MATLAB Name Purpose: To learn to create matrices and use various MATLAB commands for reference later MATLAB functions used: [ ] : ; + - * ^, size, help, format, eye, zeros, ones, diag, rand, round, cos, sin,

More information

Speeding up MATLAB Applications The MathWorks, Inc.

Speeding up MATLAB Applications The MathWorks, Inc. Speeding up MATLAB Applications 2009 The MathWorks, Inc. Agenda Leveraging the power of vector & matrix operations Addressing bottlenecks Utilizing additional processing power Summary 2 Example: Block

More information

Introduction to MATLAB

Introduction to MATLAB CHEE MATLAB Tutorial Introduction to MATLAB Introduction In this tutorial, you will learn how to enter matrices and perform some matrix operations using MATLAB. MATLAB is an interactive program for numerical

More information

Mini-project 2 CMPSCI 689 Spring 2015 Due: Tuesday, April 07, in class

Mini-project 2 CMPSCI 689 Spring 2015 Due: Tuesday, April 07, in class Mini-project 2 CMPSCI 689 Spring 2015 Due: Tuesday, April 07, in class Guidelines Submission. Submit a hardcopy of the report containing all the figures and printouts of code in class. For readability

More information

Linear Algebra Review

Linear Algebra Review CS 1674: Intro to Computer Vision Linear Algebra Review Prof. Adriana Kovashka University of Pittsburgh January 11, 2018 What are images? (in Matlab) Matlab treats images as matrices of numbers To proceed,

More information

6D Object Pose Estimation Binaries

6D Object Pose Estimation Binaries 6D Object Pose Estimation Binaries March 20, 2018 All data regarding our ECCV 14 paper can be downloaded from our project page: https://hci.iwr.uni-heidelberg.de/vislearn/research/ scene-understanding/pose-estimation/#eccv14.

More information

Matlab Tutorial, CDS

Matlab Tutorial, CDS 29 September 2006 Arrays Built-in variables Outline Operations Linear algebra Polynomials Scripts and data management Help: command window Elisa (see Franco next slide), Matlab Tutorial, i.e. >> CDS110-101

More information

Machine Learning for Pre-emptive Identification of Performance Problems in UNIX Servers Helen Cunningham

Machine Learning for Pre-emptive Identification of Performance Problems in UNIX Servers Helen Cunningham Final Report for cs229: Machine Learning for Pre-emptive Identification of Performance Problems in UNIX Servers Helen Cunningham Abstract. The goal of this work is to use machine learning to understand

More information

Vincent Mouchi, Quentin G. Crowley, Teresa Ubide, 2016

Vincent Mouchi, Quentin G. Crowley, Teresa Ubide, 2016 AERYN: Walkthrough This short report will help you operate AERYN with all its capabilities. You can use the example files available with this report (also available at http://www.tcd.ie/geology/staff/crowleyq/aeryn/).

More information

Experimental Physics I & II "Junior Lab"

Experimental Physics I & II Junior Lab MIT OpenCourseWare http://ocw.mit.edu 8.13-14 Experimental Physics I & II "Junior Lab" Fall 2007 - Spring 2008 For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.

More information

Introduction to MATLAB

Introduction to MATLAB Introduction to MATLAB An introductory guide to using MATLAB. By following this labsheet you should be able to quickly pick up the basics of the language for use in the following lab sessions. MATLAB and

More information

An Introduction to Stata Exercise 1

An Introduction to Stata Exercise 1 An Introduction to Stata Exercise 1 Anna Folke Larsen, September 2016 1 Table of Contents 1 Introduction... 1 2 Initial options... 3 3 Reading a data set from a spreadsheet... 5 4 Descriptive statistics...

More information

CS/NEUR125 Brains, Minds, and Machines. Due: Wednesday, March 8

CS/NEUR125 Brains, Minds, and Machines. Due: Wednesday, March 8 CS/NEUR125 Brains, Minds, and Machines Lab 6: Inferring Location from Hippocampal Place Cells Due: Wednesday, March 8 This lab explores how place cells in the hippocampus encode the location of an animal

More information

Introduction to MATLAB. Simon O Keefe Non-Standard Computation Group

Introduction to MATLAB. Simon O Keefe Non-Standard Computation Group Introduction to MATLAB Simon O Keefe Non-Standard Computation Group sok@cs.york.ac.uk Content n An introduction to MATLAB n The MATLAB interfaces n Variables, vectors and matrices n Using operators n Using

More information

Introduction to Matlab

Introduction to Matlab Introduction to Matlab Enrique Muñoz Ballester Dipartimento di Informatica via Bramante 65, 26013 Crema (CR), Italy enrique.munoz@unimi.it Contact Email: enrique.munoz@unimi.it Office: Room BT-43 Industrial,

More information

This is the basis for the programming concept called a loop statement

This 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 information

Data and Function Plotting with MATLAB (Linux-10)

Data and Function Plotting with MATLAB (Linux-10) Data and Function Plotting with MATLAB (Linux-10) This tutorial describes the use of MATLAB for general plotting of experimental data and equations and for special plots like histograms. (Astronomers -

More information

EE 350. Continuous-Time Linear Systems. Recitation 1. 1

EE 350. Continuous-Time Linear Systems. Recitation 1. 1 EE 350 Continuous-Time Linear Systems Recitation 1 Recitation 1. 1 Recitation 1 Topics MATLAB Programming Basic Operations, Built-In Functions, and Variables m-files Graphics: 2D plots EE 210 Review Branch

More information

Can be put into the matrix form of Ax=b in this way:

Can 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 information

Expression Analysis with the Advanced RNA-Seq Plugin

Expression Analysis with the Advanced RNA-Seq Plugin Expression Analysis with the Advanced RNA-Seq Plugin May 24, 2016 Sample to Insight CLC bio, a QIAGEN Company Silkeborgvej 2 Prismet 8000 Aarhus C Denmark Telephone: +45 70 22 32 44 www.clcbio.com support-clcbio@qiagen.com

More information

Automated Parameterization of the Joint Space Dynamics of a Robotic Arm. Josh Petersen

Automated Parameterization of the Joint Space Dynamics of a Robotic Arm. Josh Petersen Automated Parameterization of the Joint Space Dynamics of a Robotic Arm Josh Petersen Introduction The goal of my project was to use machine learning to fully automate the parameterization of the joint

More information

An Introduction to Numerical Methods

An Introduction to Numerical Methods An Introduction to Numerical Methods Using MATLAB Khyruddin Akbar Ansari, Ph.D., P.E. Bonni Dichone, Ph.D. SDC P U B L I C AT I O N S Better Textbooks. Lower Prices. www.sdcpublications.com Powered by

More information

ME 1020 Engineering Programming with MATLAB. Chapter 1 In-Class Assignment: 1.1, 1.3, 1.13, Topics Covered:

ME 1020 Engineering Programming with MATLAB. Chapter 1 In-Class Assignment: 1.1, 1.3, 1.13, Topics Covered: ME 1020 Engineering Programming with MATLAB Chapter 1 In-Class Assignment: 1.1, 1.3, 1.13, 1.16 Topics Covered: Use MATLAB as a calculator Save files to folders and open files from folders Create row vector

More information

Teaching Manual Math 2131

Teaching Manual Math 2131 Math 2131 Linear Algebra Labs with MATLAB Math 2131 Linear algebra with Matlab Teaching Manual Math 2131 Contents Week 1 3 1 MATLAB Course Introduction 5 1.1 The MATLAB user interface...........................

More information

MATLAB SON Library. Malcolm Lidierth King's College London Updated October 2005 (version 2.0)

MATLAB SON Library. Malcolm Lidierth King's College London Updated October 2005 (version 2.0) MATLAB SON Library Malcolm Lidierth King's College London Updated October 2005 (version 2.0) This pack now contains two libraries: SON2 is a backwards-compatible update to the previous library. It provides

More information

There is also a more in-depth GUI called the Curve Fitting Toolbox. To run this toolbox, type the command

There is also a more in-depth GUI called the Curve Fitting Toolbox. To run this toolbox, type the command Matlab bootcamp Class 4 Written by Kyla Drushka More on curve fitting: GUIs Thanks to Anna (I think!) for showing me this. A very simple way to fit a function to your data is to use the Basic Fitting GUI.

More information

OUTLOOK ATTACHMENT EXTRACTOR 3

OUTLOOK ATTACHMENT EXTRACTOR 3 OUTLOOK ATTACHMENT EXTRACTOR 3 PROGRAM HELP GILLMEISTER SOFTWARE WWW.GILLMEISTER-SOFTWARE.COM 1 TABLE OF CONTENTS 1 Table of contents... 1 2 Start... 4 3 Main menu... 4 3.1 Menu entries of the group Menu...

More information

Lecture 2: Introduction

Lecture 2: Introduction Lecture 2: Introduction v2015.0 Release ANSYS HFSS for Antenna Design 1 2015 ANSYS, Inc. Multiple Advanced Techniques Allow HFSS to Excel at a Wide Variety of Applications Platform Integration and RCS

More information

Lab of COMP 406. MATLAB: Quick Start. Lab tutor : Gene Yu Zhao Mailbox: or Lab 1: 11th Sep, 2013

Lab of COMP 406. MATLAB: Quick Start. Lab tutor : Gene Yu Zhao Mailbox: or Lab 1: 11th Sep, 2013 Lab of COMP 406 MATLAB: Quick Start Lab tutor : Gene Yu Zhao Mailbox: csyuzhao@comp.polyu.edu.hk or genexinvivian@gmail.com Lab 1: 11th Sep, 2013 1 Where is Matlab? Find the Matlab under the folder 1.

More information

Fundamentals of Rietveld Refinement II. Refinement of a Single Phase

Fundamentals of Rietveld Refinement II. Refinement of a Single Phase Fundamentals of Rietveld Refinement II. Refinement of a Single Phase An Introduction to Rietveld Refinement using PANalytical X Pert HighScore Plus v3.0e Scott A Speakman, Ph.D. MIT Center for Materials

More information

Calibration Curves Computing CCC Software User manual (for Release 1.3)

Calibration Curves Computing CCC Software User manual (for Release 1.3) Calibration Curves Computing CCC Software User manual (for Release 1.3) Abstract This document is a User manual for the software Calibration Curves Computing CCC Software (Release 1.3), which is a software,

More information

Fall 2015 Math 337. Basic MatLab

Fall 2015 Math 337. Basic MatLab Fall 215 Math 337 Basic MatLab MatLab is a powerful software created by MathWorks, which is used extensively in mathematics, engineering, and the sciences. It has powerful numerical and graphic capabilities,

More information

Contents RELEASE AND UPGRADE NOTES. Version 4.0

Contents RELEASE AND UPGRADE NOTES. Version 4.0 RELEASE AND UPGRADE NOTES HIQ Version 4.0 These notes introduce you to HiQ, describe the system requirements, and contain installation instructions, upgrade information, new features, and updated documentation

More information

Introduction to Matrix Operations in Matlab

Introduction to Matrix Operations in Matlab Introduction to Matrix Operations in Matlab Gerald W. Recktenwald Department of Mechanical Engineering Portland State University gerry@pdx.edu ME 350: Introduction to Matrix Operations in Matlab Overview

More information

Working with Attributes

Working with Attributes Working with Attributes QGIS Tutorials and Tips Author Ujaval Gandhi http://www.spatialthoughts.com This work is licensed under a Creative Commons Attribution 4.0 International License. Working with Attributes

More information

Package LSDinterface

Package LSDinterface Type Package Title Reading LSD Results (.res) Files Version 0.3.1 Date 2017-11-24 Author Package LSDinterface November 27, 2017 Maintainer Interfaces R with LSD. Reads object-oriented

More information

Iterated Calculations and Summing ARNs

Iterated Calculations and Summing ARNs Iterated Calculations and Summing ARNs INTRODUCTION This knowledge base article discusses how to iterate calculations and sum the results in the ARN (Analysis Results Node) via a script. One reason why

More information

2015 The MathWorks, Inc. 1

2015 The MathWorks, Inc. 1 2015 The MathWorks, Inc. 1 C/C++ 사용자를위한 MATLAB 활용 : 알고리즘개발및검증 이웅재부장 2015 The MathWorks, Inc. 2 Signal Processing Algorithm Design with C/C++ Specification Algorithm Development C/C++ Testing & Debugging

More information

Operating instructions - Cary 100 Bio UV-visible Spectrophotometer

Operating instructions - Cary 100 Bio UV-visible Spectrophotometer Operating instructions - Cary 100 Bio UV-visible Spectrophotometer This document describes how to power up the spectrophotometer, set its measurement parameters, insert one or more of samples for analysis

More information

Homework 2: Search and Optimization

Homework 2: Search and Optimization Scott Chow ROB 537: Learning Based Control October 16, 2017 Homework 2: Search and Optimization 1 Introduction The Traveling Salesman Problem is a well-explored problem that has been shown to be NP-Complete.

More information

Crystal Reports Compiled by Christopher Dairion

Crystal Reports Compiled by Christopher Dairion Crystal Reports Compiled by Christopher Dairion Not for customer distribution! When you install Crystal Reports 9, the Excel and Access Add-In are added automatically. A Crystal Report Wizard 9 menu option

More information

MATLAB Introduction. Contents. Introduction to Matlab. Published on Advanced Lab (

MATLAB Introduction. Contents. Introduction to Matlab. Published on Advanced Lab ( Published on Advanced Lab (http://experimentationlab.berkeley.edu) Home > References > MATLAB Introduction MATLAB Introduction Contents 1 Introduction to Matlab 1.1 About Matlab 1.2 Prepare Your Environment

More information

Workshop 10-1: HPC for Finite Arrays

Workshop 10-1: HPC for Finite Arrays Workshop 10-1: HPC for Finite Arrays 2015.0 Release ANSYS HFSS for Antenna Design 1 2015 ANSYS, Inc. Getting Started Launching ANSYS Electronics Desktop 2015 Select Programs > ANSYS Electromagnetics >

More information