PH15010 Laboratory Techniques - An Introduction to MATHCAD.

Slides:



Advertisements
Similar presentations
MathCAD Data.
Advertisements

An Introduction to Spreadsheets Using Number Magic Malcolm Wilson ICT Curriculum Support Teacher (Primary) Falkirk Council.
EGN 1006 – Introduction to Engineering Engineering Problem Solving and Excel.
Commission on Information and Communications Technology Electronic Spreadsheet (Hands-on Module) Learning Technologies Division HUMAN CAPITAL DEVELOPMENT.
FORMULAS & FUNCTIONS EXCEL 2. Excel Input – a collection of informational data typed into the spreadsheet Output – worksheet results Information to be.
FORMULAS & FUNCTIONS EXCEL. Input A collection of information Data typed into the spreadsheet Output Worksheet Results.
Introduction to Spreadsheets. Learning Target I can input data and do simple calculations in a spreadsheet.
UNLOCKING THE SECRETS HIDDEN IN YOUR DATA Part 3 Data Analysis.
Excel: Working With Formulas Cooperative Conversations January 12, 2007.
Microsoft Office XP Microsoft Excel
Excel Objects, User Interface, and Data Entry. ◦ Application Window  Title Bar  Menu Bar  Toolbars  Status Bar  Worksheet Window  Worksheet Input.
CTS130 Spreadsheet Lesson 20 Data Consolidation. Consolidation is a process in which data from multiple worksheets or workbooks is combined and summarized.
Word Lesson 11 Customizing Tables and Creating Charts Microsoft Office 2010 Advanced Cable / Morrison 1.
Statistical Analysis with Excel
Excel Lesson 4 Entering Worksheet Formulas
An Introduction to MathCAD
MathCAD Data. Data in tables Tables are analogous to matrix The numbers of columns and rows can be dynamically changed (in contrast to matrix) To enter.
EGR 106 – Week 2 – Arrays Definition, size, and terminology Construction methods Addressing and sub-arrays Some useful functions for arrays Character arrays.
Statistics: Data Analysis and Presentation Fr Clinic II.
EGR 106 – Week 2 – Arrays Definition, size, and terminology Construction methods Addressing and sub-arrays Some useful functions for arrays Character arrays.
Introduction to Spreadsheets Presented by Frank H. Osborne, Ph. D. © 2005 Bio 2900 Computer Applications in Biology.
C++ for Engineers and Scientists Third Edition
Basic Mathematics for Portfolio Management. Statistics Variables x, y, z Constants a, b Observations {x n, y n |n=1,…N} Mean.
1 Excel Lesson 4 Entering Worksheet Formulas Microsoft Office 2010 Introductory Pasewark & Pasewark.
Matrix Mathematics in MATLAB and Excel
Mathcad Variable Names A string of characters (including numbers and some “special” characters (e.g. #, %, _, and a few more) Cannot start with a number.
1CP102_module 3: spreadsheet2 More features in Excel Selection: a cell, a range, multiple ranges Name a range: to give name to a selected range or multiple.
Data processing in MathCAD. Data in tables Tables are analogous to matrices Tables are analogous to matrices The numbers of columns and rows can be dynamically.
Excel – Lesson 1 Pasewark & PasewarkMicrosoft Office 2007: Introductory 1 Entering a Formula (continued) Formulas can include more than one operator. The.
Section 8.1/8.2 Matrix Solutions to Linear Systems Inconsistent and Dependent Systems.
Chapter 10 Review: Matrix Algebra
Managing Business Data Lecture 8. Summary of Previous Lecture File Systems  Purpose and Limitations Database systems  Definition, advantages over file.
Learner’s Guide to MATLAB® Chapter 2 : Working with Arrays.
Using Advanced Formatting and Analysis Tools. 2 Working with Grouped Worksheets: Grouping Worksheets  Data is entered simultaneously on all worksheets.
259 Lecture 13 Spring 2013 Advanced Excel Topics – Arrays.
Matlab for Engineers Manipulating Matlab Matrices Chapter 4.
Lesson 11-1 Matrix Basics and Augmented Matrices Objective: To learn to solve systems of linear equation using matrices.
PH15720 Laboratory Techniques - An Introduction to MATHCAD.
Working with Arrays in MATLAB
Chapter 5 Working with Multiple Worksheets and Workbooks
PH24010 Data Handling and Statistics Use of MathCAD to handle statistical data Data storage in vectors and matrices MathCAD’s built-in functions: –Mean,
 2007 Pearson Education, Inc. All rights reserved C Arrays.
CHAPTER 17 INTRODUCTION TO SPREADSHEETS. SPREADSHEETS Application Software designed to aid users in entering, moving,copying, labeling, displaying and.
PH24010 MathCAD More Curve Fitting. Previously on PH24010 Linear Fitting slope(), intercept() line() Pre-process Y-data: –y = k/x –y = e kx.
 2008 Pearson Education, Inc. All rights reserved. 1 Arrays and Vectors.
INTRODUCTION TO MATLAB DAVID COOPER SUMMER Course Layout SundayMondayTuesdayWednesdayThursdayFridaySaturday 67 Intro 89 Scripts 1011 Work
1 Excel Lesson 2 Organizing the Worksheet & Formulas Microsoft Office 2010 Introductory Pasewark & Pasewark.
PH15720 Laboratory Techniques - An Introduction to MATHCAD.
Chapter 2: Excel Basics and Formatting Spreadsheet-Based Decision Support Systems Prof. Name Position (123) University Name.
PH15010 Laboratory Techniques - An Introduction to MATHCAD.
Introduction to Excel Lecture 3. Excel basics O Excel is a software program that can make number manipulation easy O It is also referred as a spreadsheet.
 The term “spreadsheet” covers a wide variety of elements useful for quantitative analysis of all kinds. Essentially, a spreadsheet is a simple tool.
Introduction to Programming Lecture # 43. Math Library Complex number Matrix Quadratic equation and their solution …………….…
Introduction to Excel EC 151 Principles of Microeconomics Block 3,
An Introduction to Microsoft Excel Presented to EC 303 Research Methods Block 7 March 25, :30-2:30 p.m. Palmer 02.
ExCel Chapters 1 and 2 Classwork: Problems 2-3, 2-6, 2-8, 2-10 Homework: Problems 2-4, 2-7, 2-9, 2-13.
This is only an introduction!!
Advanced Excel Topics – Arrays
Office tool for creating tables and charts
Manipulating MATLAB Matrices Chapter 4
Statistical Analysis with Excel
Excel Formulas & Functions.
ExCel Chapters 1 and 2 Classwork: Problems 2-3, 2-6, 2-8, 2-10
Statistical Analysis with Excel
Excel 2013 Formulas & Functions.
Statistical Analysis with Excel
Excel 2013 Formulas & Functions.
Excel 2013 Formulas & Functions.
TransCAD Working with Matrices 2019/4/29.
Working with Arrays in MATLAB
Presentation transcript:

PH15010 Laboratory Techniques - An Introduction to MATHCAD

Introduction Review of last weekReview of last week Vector and Matrix MathsVector and Matrix Maths StatisticsStatistics Solving simultaneous equations with matricesSolving simultaneous equations with matrices

Review of Last Week Processing experimental data with arraysProcessing experimental data with arrays Adding Error bars to graphsAdding Error bars to graphs Pre-Processing DataPre-Processing Data –Convert to f –Logarithms for power law Extract slope & intercept from dataExtract slope & intercept from data

Functions Reviewed Take one or more inputs (parameters) and return a value or valuesTake one or more inputs (parameters) and return a value or values From f(x) toolbar if you don’t know the nameFrom f(x) toolbar if you don’t know the name Afunction(parameters)=Afunction(parameters)= Avariable:=Afunction(p1,p2,p3…)Avariable:=Afunction(p1,p2,p3…) Use the help system/f(x) dialogUse the help system/f(x) dialog

Matrix & Vector Maths Used for:Used for: –Processing experimental data –Statistics –Resolving forces etc in 2D, 3D –Co-ordinate transformations –Simultaneous Equations –Applying transforms to data

Creating Arrays in MathCAD 2 ways of entering arrays2 ways of entering arrays –Input Table (already encountered) Spreadsheet type entrySpreadsheet type entry Expand to fit data availableExpand to fit data available –Insert Matrix Dialog box Array of placeholdersArray of placeholders Good if you know how many elements in matrix/vectorGood if you know how many elements in matrix/vector

Creating an array with Insert|Matrix… Same for defining ordinary variableSame for defining ordinary variable Follow : withFollow : with –[:::] from toolbar – – –Insert|Matrix Dialog box for rows & columnsDialog box for rows & columns

Creating arrays with Insert|Matrix… Placeholders to fill in Can use units Empty 3 – element vector

Matrix Maths #1

Matrix Maths #2 (Symbolically) Matrix Multiplication Determinant Addition of constant

Matrix & Vector Maths Add, Multiply & Divide matrices/vectorsAdd, Multiply & Divide matrices/vectors Must have correct numbers of rows & columnsMust have correct numbers of rows & columns

Addressing Arrays with Indices Index addressing allows access to individual elements of arrayIndex addressing allows access to individual elements of array Examine & Set elementsExamine & Set elements Indices start at 0Indices start at 0 Indices use [ keyIndices use [ key 2D matrices use two indices for row, column selection2D matrices use two indices for row, column selection

Indices #1 Vector Example Simple 2 element vector Examine elements Set element 0 Result of setting

Indices #2 Matrix Example Sample matrix Examine elements Subscript too big Set element Result

Accessing Parts Of Arrays Index addressing – single elementIndex addressing – single element Column Extract operator M <>Column Extract operator M <> Submatrix() functionSubmatrix() function Transposing matricesTransposing matrices

The submatrix() function Define a matrix Use submatrix() to extract part of the array Matrix to operate on Rows Columns

Transpose Rows & Columns Uses M T operatorUses M T operator From matrix toolbarFrom matrix toolbar

Other matrix functions 1. Information Return information about:Return information about: –Size of matrix rows(M), cols(M), last(V), length(V)rows(M), cols(M), last(V), length(V) –Contents of matrix min(A), max(A)min(A), max(A)  V  V

Other matrix functions 2. Manipulation Create new arraysCreate new arrays –Put 2 arrays together stack(A1,A2)stack(A1,A2) augment(A1,A2)augment(A1,A2) –Sorting sort(V), reverse(A)sort(V), reverse(A) rsort(M,r), csort(M,c)rsort(M,r), csort(M,c)

Statistical Functions on Vectors #1 From f(x) dialog box under “Statistics”From f(x) dialog box under “Statistics” AveragingAveraging –mean() ‘Average value’ –median() ‘Half way item’ –mode() ‘Most common value’

Statistical Functions on Vectors #2 Variance & Standard DeviationVariance & Standard Deviation 2 forms of each2 forms of each Analysis of sampleAnalysis of sample –Stdev(), Var() Analysis of whole populationAnalysis of whole population –stdev(), var() Note capitalisationNote capitalisation

Vectorise Operator #1 From matrix toolbarFrom matrix toolbar Forces evaluation on element by element basisForces evaluation on element by element basis Overrides normal matrix mathsOverrides normal matrix maths –‘dot’ product –Determinant |M| –Powers M x

Vectorise Operator #2 Dot product With vectorise operator

Range Variables Take on a series of valuesTake on a series of values Define using semicolon [;]Define using semicolon [;]

Range Variables #2 Restrictions on where usedRestrictions on where used ‘illegal context’ error message‘illegal context’ error message Useful for filling arraysUseful for filling arrays

Filling Arrays using RVs Define RVDefine RV Use RV in array index & expressionUse RV in array index & expression

Processing Arrays using RVs Use RV in expressions to create output array from input arrayUse RV in expressions to create output array from input array

Range Variables with different step sizes Can create RVs with different step sizes.Can create RVs with different step sizes. Enter first 2 values separated by comma [,] before typing [;]Enter first 2 values separated by comma [,] before typing [;]

Summation #1 Summation operator on matrix paletteSummation operator on matrix palette Sum of all elements in a vectorSum of all elements in a vector

Summation #2 Operators on Calculus paletteOperators on Calculus palette Do summation on any expressionDo summation on any expression 2 forms2 forms –Plain => defines local RV –Range Variable => uses existing RV

Summation #3 Sum of first 5 integers Sum of elements of vector Counts

Summation #4 Reciprocals of factorials 2 terms 4 terms 9 terms

Data Files Used Input table to put data into MathCAD by hand.Used Input table to put data into MathCAD by hand. Can use Import on input table to get from a file (makes a copy)Can use Import on input table to get from a file (makes a copy) –Select table & right-click Also can link to data file with File Read Component (preferred)Also can link to data file with File Read Component (preferred)

Reading Data Files #1 File Read ComponentFile Read Component Reads from datafile  arrayReads from datafile  array Text filesText files –Numbers separated by comma or tab Other formats supportedOther formats supported

Reading Data Files #2 Insert|Component…|File Read or WriteInsert|Component…|File Read or Write Wizard:Wizard: –(Select file type) –Browse for file –Finish Give name for arrayGive name for array

Reading Data Files #3 ExampleExample

This weeks worksheet Arrays & IndicesArrays & Indices Columns (Revision)Columns (Revision) Submatrix() functionSubmatrix() function Other array functionsOther array functions Reading data from fileReading data from file