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.

Slides:



Advertisements
Similar presentations
PSOD Lecture 2.
Advertisements

MathCAD Data.
MS EXCEL is a spreadsheet application Excel covers: Calculation Graphic tools Pivot tables Macro programming language called VBA EXCEL is a part of MS.
259 Lecture 17 Working with Data in MATLAB. Overview  In this lecture, we’ll look at some commands that are useful for working with data!  fzero  sum,
DAY 10: MICROSOFT EXCEL – CHAPTER 8 MICROSOFT EXCEL – CHAPTER 9 MICROSOFT EXCEL – CHAPTER 10 Akhila Kondai September 23, 2013.
E ngineering College of San Jose State University Engr.10 1 JKA & KY.
Applied Econometrics Second edition
Excel – Study Guide #2.
Excel Notes Phys244/246 © 2007, B.J. Lieb. Calculating Velocity The velocity is calculated by entering the following: =(B3-B2) / (A3-A2). Then drag the.
Excel Objects, User Interface, and Data Entry. ◦ Application Window  Title Bar  Menu Bar  Toolbars  Status Bar  Worksheet Window  Worksheet Input.
Using Complex Formulas, Functions, and Tables. Objectives Navigate a workbookNavigate a workbook Enter labels and valuesEnter labels and values Change.
Regression Analysis Using Excel. Econometrics Econometrics is simply the statistical analysis of economic phenomena Here, we just summarize some of the.
Introduction to SPSS Allen Risley Academic Technology Services, CSUSM
Basis Expansion and Regularization Presenter: Hongliang Fei Brian Quanz Brian Quanz Date: July 03, 2008.
An Introduction to MathCAD
Searching for the Minimal Bézout Number Lin Zhenjiang, Allen Dept. of CSE, CUHK 3-Oct-2005
By Hrishikesh Gadre Session II Department of Mechanical Engineering Louisiana State University Engineering Equation Solver Tutorials.
Lecture 6 MATLAB functions Basics of Built-in Functions, Help Feature, Elementary Functions (e.g., Polynomials, Trigonometric Functions), Data Analysis,
MathCAD. Boundary value problem  Second order differential equation have two initial values. They can be placed in different points. ab A B for.
Motion Analysis (contd.) Slides are from RPI Registration Class.
Curve-Fitting Regression
Development of Empirical Models From Process Data
Engineering Computation Curve Fitting 1 Curve Fitting By Least-Squares Regression and Spline Interpolation Part 7.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 24 Regression Analysis-Chapter 17.
EXCEL PART1. Objectives  Understand spreadsheet software  Tour the Excel 2010 window  Understand formulas  Enter labels and values and use the Sum.
1 1 Slide © 2003 South-Western/Thomson Learning™ Slides Prepared by JOHN S. LOUCKS St. Edward’s University.
GTECH 201 Lecture 03 Data measurements Data errors.
Excel Web App By: Ms. Fatima Shannag.
ADVANCED MICROSOFT POWERPOINT Lesson 6 – Creating Tables and Charts
1 Spreadsheet Problem Solving  applied statistics  table lookup.
Matrices Write and Augmented Matrix of a system of Linear Equations Write the system from the augmented matrix Solve Systems of Linear Equations using.
Calibration & Curve Fitting
Computational Methods in Physics PHYS 3437 Dr Rob Thacker Dept of Astronomy & Physics (MM-301C)
Mathcad Variable Names A string of characters (including numbers and some “special” characters (e.g. #, %, _, and a few more) Cannot start with a number.
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.
CMPS1371 Introduction to Computing for Engineers NUMERICAL METHODS.
Advanced Excel for Finance Professionals A self study material from South Asian Management Technologies Foundation.
CS&E 200 Exfunctions Using Functions in Excel Objectives: Using Excel functions l Sum, Min, Max, Average, Count l Large, Small, Rank l Round l Countif.
REVIEW 2 Exam History of Computers 1. CPU stands for _______________________. a. Counter productive units b. Central processing unit c. Copper.
259 Lecture 13 Spring 2013 Advanced Excel Topics – Arrays.
Recap Summary of Chapter 6 Interpolation Linear Interpolation.
PSOD Lecture 2. Matrices and vectors in Chemical & Process Engineering Appear in calculations when process is described by the system of equations:
Digital Image Processing Lecture 6: Image Geometry
Curve-Fitting Regression
PH15010 Laboratory Techniques - An Introduction to MATHCAD.
Scientific Computing General Least Squares. Polynomial Least Squares Polynomial Least Squares: We assume that the class of functions is the class of all.
Functions Section 1.4. Relation The value of one variable is related to the value of a second variable A correspondence between two sets If x and y are.
1 CA203 Presentation Application Adding Tables, Charts, and Diagrams Lecture # 9 By Tariq Ibn Aziz Dammam Community college.
Excel Web App By: Ms. Fatima Shannag.
PH24010 Data Handling and Statistics Use of MathCAD to handle statistical data Data storage in vectors and matrices MathCAD’s built-in functions: –Mean,
Jump to first page Chapter 3 Splines Definition (3.1) : Given a function f defined on [a, b] and a set of numbers, a = x 0 < x 1 < x 2 < ……. < x n = b,
Recap Cubic Spline Interpolation Multidimensional Interpolation Curve Fitting Linear Regression Polynomial Regression The Polyval Function The Interactive.
PERFORMING CALCULATIONS Microsoft Excel. Excel Formulas A formula is a set of mathematical instructions that can be used in Excel to perform calculations.
Spreadsheets What is Excel?. Objectives 1. Identify the parts of the Excel Screen 2. Identify the functions of a spreadsheet 3. Identify how spreadsheets.
MODEL FITTING jiangyushan. Introduction The goal of model fitting is to choose values for the parameters in a function to best describe a set of data.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 4 Chapter 15 General Least Squares and Non- Linear.
Recap Functions with No input OR No output Determining The Number of Input and Output Arguments Local Variables Global Variables Creating ToolBox of Functions.
Chapter 28. Copyright 2003, Paradigm Publishing Inc. CHAPTER 28 BACKNEXTEND 28-2 LINKS TO OBJECTIVES Table Calculations Table Properties Fields in a Table.
Cell Column Drawing Toolbar Formatting Toolbar Formula Bar Help Box Menu Bar Name Box Rows Standard Toolbar Title Bar Worksheet.
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.
Introduction to Programming for Mechanical Engineers
Transfer Functions Convenient representation of a linear, dynamic model. A transfer function (TF) relates one input and one output: The following terminology.
Advanced Excel Topics – Arrays
ExCel Chapters 1 and 2 Classwork: Problems 2-3, 2-6, 2-8, 2-10
Chapter 12 Curve Fitting : Fitting a Straight Line Gab-Byung Chae
Modelling data and curve fitting
AP Stats Check In Where we’ve been… Chapter 7…Chapter 8…
Write Polynomial Functions and Models
Amos Introduction In this tutorial, you will be briefly introduced to the student version of the SEM software known as Amos. You should download the current.
Interpolation Theory Section 1
Presentation transcript:

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 table: Menu: Insert/Component/Input Table In placeholder type variable name which will be assigned to table In cells type the values Each rows must contains the same number of data. If data are missing the value ‘0’ will be assigned Access to data in table are matrix like.

Data in tables

Data in files The most popular file formats accepted by MathCAD: Text files Excel worksheets MATLAB To insert text file containing data: Menu: Insert/Component/File Read or Write Chose file format Browse to the file location In the appeared placeholder type variable name that will be assigned to the contents of file

Inserting the text file

Changes in the text file location

Inserting the Excel sheets A range of Excel cells can be inserted into the MathCAD There can be more then one range in single insertion One variable is being assigned to one range All variables forms a vector Cells can contain numbers as well as text (in contrast to table and text files) Worksheets can be edited (double-click) using all Excel functions (object embedded). Excel has to be installed in system.

Inserting the Excel sheets To insert worksheet: Menu: Insert/Component/Excel Browse file or create new Choose number of ranges for input and output (relatively to Excel worksheet). If no data have to be inserted into the Excel worksheet type inputs number 0 Type ranges corresponding to outputs – e.g. A1:B10 (if sheet name is different from Sheet1 type sheet name – e.g. Sheet4!A1:B10) In placeholder(s) type variable(s) Number of outputs/inputs and range of cells can be edited in prosperities of insertion

MathCAD files as data source in MathCAD MathCAD can use data included in other MathCAD files Access to data is possible after embedding MathCAD file: menu: Insert/References, Brows file on disc or type file address Below the insertion all data, definitions, assignment from inserted file are valid in the present document Problem: indexed variables.

Data analysis and optimisation Approximation

definition Approximation is a part of numerical analysis. It is concerned with how functions f(x) can be best approximated (fitted) with another functions F(x)

aplication Simplifying calculations when original function f(x) is defined by complicated expression Creation of continuous dependency when function f(x) is ascribed on discrete set of arguments. For known form of approximating function only values of function parameters giving the best approximation are to determine.

types of approximation Interpolating approximation Uniform approximation Square-mean approximation

Interpolating approximation Needs to satisfy condition: function given f(x) and approximating function F(x) have the same values on the set of nodes and (sometimes) the same values of derivatives (if they are given) too.

Uniform approximation Function F(x) approximating function f(x) in the range [a,b], that maximal residuum reaches minimum

Square-mean approximation Approximating function is determined by the use of condition : Geometrically condition means: The area between curves representing functions have to reach minimum.

Condition for discreet set of arguments: Square-mean approximation

Function: minimize(function, p1, p2,...) can be used to determine parameters of approximating function minimizing the sum of mean square deviations between values given in the table and calculated from the function. function calculates the sum of mean square deviations as a function of parameters. p1, p2 – parameters of approximating function Square-mean approximation in MathCAD

Approximating algorithm: 1. Insert data to be approximate 2. Build the approximating function 3. Create a counting variable with values from 0 to number of data minus 1 4. Build function that calculates sum of square of deviations with parameters of approximating function as variables 5. Assign starting values of parameters 6. Use the function minimize. Square-mean approximation in MathCAD

Advantageous of minimize function: simple explicit suitable for any approximating function can be used in optimisation problem solving

Other MathCAD tools for approximation

genfit Syntax: c:=genfit(X, Y, c0, F) X – vector of independent values from data set Y - vector of dependent values from data set c0 – starting vector of searched parameters F – vector function of independent variable and vector c, consists of approximating function and its derivatives on parameters c - vector of searched parameters

regress Approximation by polynomial function Syntax: Z:= Regress(X, Y, s) X – vector of independent values from data set Y - vector of dependent values from data set s – polynomial degree Z – result: vector, s+1 last elements are parameters of polynomial

Linear, cubic Spline Approximation by linear (cubic etc.) spline function Syntax: Z:=lspline(X, Y) (cspline) X – vector of independent values from data set Y - vector of dependent values from data set Data in set has to be sorted! Manually or by use function csort: W:=csort(W,i), W – matrix of data, i – nr of ordering column Z – result: vector of parameters of cubic spline function

Can be derivate Can be integrate

Interpreting function Operates on vectors obtained from regress and l(c)spline functions Building the continuous approximating function on the base of determined parameters Syntax: F(x):=interp(Z, X, Y, x) Z – vector given by approximating function X – vector of independent values from data set Y - vector of dependent values from data set x – independent values Interpreting function is implicit but can be derivated and integrated