MathCAD Data.

Slides:



Advertisements
Similar presentations
Introduction to Excel This class is “HANDS-ON” you will need to open up an excel spreadsheet and do examples as you go along. Students will be able to.
Advertisements

PSOD Lecture 2.
Live Excel PRESENTER: Brad Leupen | CTO, Entrinsik |
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.
Exercise 7.5 (p. 343) Consider the hotel occupancy data in Table 6.4 of Chapter 6 (p. 297)
E ngineering College of San Jose State University Engr.10 1 JKA & KY.
Applied Econometrics Second edition
Microsoft Office XP Microsoft Excel
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.
Chapter 07: Lecture Notes (CSIT 104) 1111 Exploring Microsoft Office Excel 2007 Chapter 7 Data Consolidation, Links, and Formula Auditing.
Using Complex Formulas, Functions, and Tables. Objectives Navigate a workbookNavigate a workbook Enter labels and valuesEnter labels and values Change.
Using Excel to Understand Your Data Clayton County Public Schools Department of Research, Evaluation and Assessment Assistant Principal In-Service.
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
An Introduction to MathCAD
By Hrishikesh Gadre Session II Department of Mechanical Engineering Louisiana State University Engineering Equation Solver Tutorials.
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.
Curve-Fitting Regression
Development of Empirical Models From Process Data
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.
Excel Web App By: Ms. Fatima Shannag.
ADVANCED MICROSOFT POWERPOINT Lesson 6 – Creating Tables and Charts
456/556 Introduction to Operations Research Optimization with the Excel 2007 Solver.
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.
1 Lesson 19 Creating Formulas and Charting Data Computer Literacy BASICS: A Comprehensive Guide to IC 3, 3 rd Edition Morrison / Wells.
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:
Curve-Fitting Regression
Scientific Computing General Least Squares. Polynomial Least Squares Polynomial Least Squares: We assume that the class of functions is the class of all.
1 CA203 Presentation Application Adding Tables, Charts, and Diagrams Lecture # 9 By Tariq Ibn Aziz Dammam Community college.
5-1 ANSYS, Inc. Proprietary © 2009 ANSYS, Inc. All rights reserved. May 28, 2009 Inventory # Chapter 5 Six Sigma.
CCS – Mail Merge Mail Merge This presentation is incomplete without the associated discussion 1 Coloma Community Schools In-service 21 March 2014.
Excel Web App By: Ms. Fatima Shannag.
Excel 2007 ® Business and Personal Finances How can Microsoft Excel 2007 help you to be more productive?
Lecture 16 - Approximation Methods CVEN 302 July 15, 2002.
Lecture 20: Choosing the Right Tool for the Job. What is MATLAB? MATLAB is one of a number of commercially available, sophisticated mathematical computation.
T.J. Poland.  Open Excel and notice the columns and rows.  In the top row and first column fill in your.
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.
Polynomials, Curve Fitting and Interpolation. In this chapter will study Polynomials – functions of a special form that arise often in science and engineering.
L5 – Curves in GIS NGEN06 & TEK230: Algorithms in Geographical Information Systems by: Sadegh Jamali (source: Lecture notes in GIS, Lars Harrie) 1 L5-
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.
Excel Chapter 1 Creating a Worksheet and an Embedded Chart
Ms. Hall Spring Functions. Excel – Lesson 4 Summarizing Data with Functions A function is a predefined formula that performs a calculation. When.
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.
International Computer Driving Licence Syllabus version 5.0
Advanced Excel Topics – Arrays
By Dr. Madhukar H. Dalvi Nagindas Khandwala college
Microsoft Excel.
Lessons Vocabulary Excel 2016.
ExCel Chapters 1 and 2 Classwork: Problems 2-3, 2-6, 2-8, 2-10
AP Stats Check In Where we’ve been… Chapter 7…Chapter 8…
Microsoft Excel 101.
Chapter 1 Creating a Worksheet and an Embedded Chart
Eviews Tutorial for Labor Economics Lei Lei
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.
Unit G: Using Complex Formulas, Functions, and Tables
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/Data/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 tables Row appears in matrix when only 1 data is inserted into the cell: Matrix size = specified cell in the lowest row and in last column Unfilled cells contains 0 Once specified cell can not be unspecified! To overcome problem: create new matrix with correct number of rows i and columns j using

Data in files The most popular file formats accepted by MathCAD: Text files Excel worksheets MATLAB To insert text file containing data: Menu: Insert/Data/File Input 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

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, ver. 2001) 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 properties 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: matrix/vector 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)

application 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 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.

Square-mean approximation Condition for discreet set of arguments:

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

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

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 (starting from x0 parameter)

Linear, cubic, polynomial spline interpolating approximation Approximation by linear (cubic etc.) spline function Syntax: Z:=lspline(X, Y) (cspline, pspline) 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 integrate Can be derivate

Interpreting function Operates on vectors obtained from regress and l(c,p)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