Huei-Huang Lee. Programming with MATLAB2016 SDC ACCESS CODE. Better Textbooks. Lower Prices. UNIQUE CODE INSIDE

Similar documents
PROGRAMMING AND ENGINEERING COMPUTING WITH MATLAB Huei-Huang Lee SDC. Better Textbooks. Lower Prices.

LEARNING TO PROGRAM WITH MATLAB. Building GUI Tools. Wiley. University of Notre Dame. Craig S. Lent Department of Electrical Engineering

Polymath 6. Overview

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

Introduction to CS graphs and plots in Excel Jacek Wiślicki, Laurent Babout,

Mathematica for Scientists and Engineers

STEPHEN WOLFRAM MATHEMATICADO. Fourth Edition WOLFRAM MEDIA CAMBRIDGE UNIVERSITY PRESS

Excel Scientific and Engineering Cookbook

Geostatistics 2D GMS 7.0 TUTORIALS. 1 Introduction. 1.1 Contents

SOLIDWORKS Flow Simulation 2015

MATLAB. Advanced Mathematics and Mechanics Applications Using. Third Edition. David Halpern University of Alabama CHAPMAN & HALL/CRC

Contents Computing with Formulas

The Cantor Handbook. Alexander Rieder

Welcome to Microsoft Excel 2013 p. 1 Customizing the QAT p. 5 Customizing the Ribbon Control p. 6 The Worksheet p. 6 Excel 2013 Specifications and

MATLAB 7. The Language of Technical Computing KEY FEATURES

Optimization Problems and Wrap-Up. CS 221 Lecture 14 Tue 6 December 2011

Creo Simulate 3.0 Tutorial

SIMULATION CAPABILITIES IN CREO

Engineering Analysis

Getting Started with MATLAB

Thursday 1/8 1 * syllabus, Introduction * preview reading assgt., chapter 1 (modeling) * HW review chapters 1, 2, & 3

Mathematica CalcCenter

PROBLEM SOLVING WITH FORTRAN 90

David J. Pine. Introduction to Python for Science & Engineering

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

HiQ Analysis, Visualization, and Report Generation

Math Scientific Computing - Matlab Intro and Exercises: Spring 2003

SolidWorks Flow Simulation 2014

Excel for Chemists. Second Edition

Using LoggerPro. Nothing is more terrible than to see ignorance in action. J. W. Goethe ( )

Essential MATLAB for Engineers and Scientists

Dynamics and Vibrations Mupad tutorial

Modelling and Simulation for Engineers

Finite Element Analysis Using Creo Simulate 4.0

Introduction to Design Optimization

SIMULATION CAPABILITIES IN CREO. Enhance Your Product Design with Simulation & Analysis

EE 216 Experiment 1. MATLAB Structure and Use

Fathom Dynamic Data TM Version 2 Specifications

MAE 384 Numerical Methods for Engineers

Using MATLAB, SIMULINK and Control System Toolbox

Python Scripting for Computational Science

Spring 2018 Updates. Computing Technology for All. Data Structure Essentials. Digital Design

An Introduction to Numerical Methods

MATLAB Guide to Fibonacci Numbers

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

CE890 / ENE801 Lecture 1 Introduction to MATLAB

Foundations of Engineering with MATLAB R 7

Engineering. Statics Labs SDC. with SOLIDWORKS Motion Includes. Huei-Huang Lee. Better Textbooks. Lower Prices.

STAT 311 (3 CREDITS) VARIANCE AND REGRESSION ANALYSIS ELECTIVE: ALL STUDENTS. CONTENT Introduction to Computer application of variance and regression

Learning. Modeling, Assembly and Analysis SOLIDWORKS Randy H. Shih SDC. Better Textbooks. Lower Prices.

Python Scripting for Computational Science

UNIVERSITI TEKNIKAL MALAYSIA MELAKA FAKULTI KEJURUTERAAN ELEKTRONIK DAN KEJURUTERAAN KOMPUTER

Concept of Curve Fitting Difference with Interpolation

Fitting a Polynomial to Heat Capacity as a Function of Temperature for Ag. by

An Introduction to Numerical Analysis

The Course Structure for the MCA Programme

Chapter 3: Rate Laws Excel Tutorial on Fitting logarithmic data

Introduction to Matlab

Introduction to Matlab. Summer School CEA-EDF-INRIA 2011 of Numerical Analysis

Applied Interval Analysis

Week 12 - Lecture Mechanical Event Simulation. ME Introduction to CAD/CAE Tools

Points Lines Connected points X-Y Scatter. X-Y Matrix Star Plot Histogram Box Plot. Bar Group Bar Stacked H-Bar Grouped H-Bar Stacked

Mathematics 6 12 Section 26

A Toolbox of Level Set Methods

Introduction to R Programming

Technical Support Minitab Version Student Free technical support for eligible products

Appendix A. HINTS WHEN USING EXCEL w

University of Alberta

Introduction to FEM calculations

MAT 275 Laboratory 2 Matrix Computations and Programming in MATLAB

Fall 2018 Updates. Materials and Energy Balances. Fundamental Programming Concepts. Data Structure Essentials (Available now) Circuits (Algebra)

Columbus State Community College Mathematics Department Public Syllabus. Course and Number: MATH 1172 Engineering Mathematics A

Introduction to MATLAB

MPM 1D Learning Goals and Success Criteria ver1 Sept. 1, Learning Goal I will be able to: Success Criteria I can:

IT 374 C# and Applications/ IT695 C# Data Structures

JMP Book Descriptions

Mechanical and Automation Engineering Programme (3-year Curriculum)

MAT 275 Laboratory 2 Matrix Computations and Programming in MATLAB

INDEPENDENT SCHOOL DISTRICT 196 Rosemount, Minnesota Educating our students to reach their full potential

2007 Maplesoft, a division of Waterloo Maple Inc.

APPLIED OPTIMIZATION WITH MATLAB PROGRAMMING

lab MS Excel 2010 active cell

(Creating Arrays & Matrices) Applied Linear Algebra in Geoscience Using MATLAB

SECTION 2: PROGRAMMING WITH MATLAB. MAE 4020/5020 Numerical Methods with MATLAB

Lab 6: Graphical Methods

TABLE OF CONTENTS 1 FISH BEGINNER S GUIDE 2 FISH REFERENCE. FISH in FLAC Contents Introduction Tutorial

Outline. COMSOL Multyphysics: Overview of software package and capabilities

1. Basic Steps for Data Analysis Data Editor. 2.4.To create a new SPSS file

Three-Dimensional (Surface) Plots

Using RecurDyn. Contents

MINITAB Release Comparison Chart Release 14, Release 13, and Student Versions

Introduction to MATLAB

Module 1 Lecture Notes 2. Optimization Problem and Model Formulation

MEI GeoGebra Tasks for AS Pure

SimWise. 3D Dynamic Motion, and Stress Analysis. integrated with Alibre Design

MAT 003 Brian Killough s Instructor Notes Saint Leo University

Module 4. Computer-Aided Design (CAD) systems

ENGINEERING PROBLEM SOLVING WITH C++

THE STUDY OF SLIDER CRANK MECHANISM USING MATLAB AND SCILAB

SOLIDWORKS Parametric Modeling with SDC. Covers material found on the CSWA exam. Randy H. Shih Paul J. Schilling

Transcription:

Programming with Huei-Huang Lee MATLAB2016 SDC P U B L I C AT I O N S Better Textbooks. Lower Prices. www.sdcpublications.com ACCESS CODE UNIQUE CODE INSIDE

Powered by TCPDF (www.tcpdf.org) Visit the following websites to learn more about this book:

Contents 1 Contents Preface 6 Chapter 1 Getting Started, Overview, and Environment 8 1.1 Start and Quit MATLAB 9 1.2 Entering Commands 11 1.3 Array Expressions 14 1.4 Two-Dimensional Graphics 15 1.5 MATLAB Scripts 16 1.6 Three-Dimensional Graphics 18 1.7 Symbolic Mathematics 20 1.8 Screen Text Input/Output 24 1.9 Text File Input/Output 26 1.10 Running Programs in Blocks 28 1.11 Running Programs with Break Points 29 1.12 Binary File Input/Output 30 1.13 Images and Sounds 31 1.14 Flow Controls 33 1.15 User-Defined Functions 34 1.16 Cell Arrays 36 1.17 Structures 37 1.18 Tables 38 1.19 Graphical User Interfaces 39 1.20 GUIDE: Graphical User Interface Development Environment 42 1.21 Creating Standalone Applications 47 1.22 MATLAB On-Line Tutorials 50 Chapter 2 Data Types, Operators, and Expressions 52 2.1 Numerical Data Types 53 2.2 Character Data Type 57 2.3 Logical Data Type 59 2.4 Arrays 61 2.5 Sums, Products, Minima, and Maxima 65 2.6 Arithmetic Operators 67 2.7 Relational and Logical Operators 71 2.8 String Manipulations 73 2.9 Expressions 75 2.10 Example: Function Approximations 77 2.11 Example: Series Solution of a Laplace Equation 81 2.12 Example: Deflection of Beams 83 2.13 Example: Vibrations of Supported Machines 85 2.14 Additional Exercise Problems 89

2 Contents Contents 2 Chapter 3 Flow Controls, Functions, and Programs 92 3.1 If-Blocks 93 3.2 Switch-Blocks 95 3.3 While-Loops 97 3.4 For-Loops 98 3.5 User-Defined Functions 100 3.6 Subfunctions 103 3.7 Nested Functions 104 3.8 Function Handles 105 3.9 Anonymous Functions 107 3.10 Function Precedence Order 109 3.11 Program Files 110 3.12 Example: Deflection of Beams 111 3.13 Example: Sorting and Searching 112 3.14 Example: Statically Determinate Trusses (Version I) 115 3.15 Example: Statically Determinate Trusses (Version II) 118 3.16 Additional Exercise Problems 127 Chapter 4 Cell Arrays, Structures, Tables, and User-Defined Classes 128 4.1 Cell Arrays 129 4.2 Functions of Variable-Length Arguments 131 4.3 Structures 134 4.4 Example: Statically Determinate Trusses (Version III) 136 4.5 Tables 140 4.6 Conversion of Cell Arrays 143 4.7 Conversion of Structure Arrays 145 4.8 Conversion of Tables 147 4.9 User-Defined Class: Poly 149 4.10 Additional Exercise Problems 153 Chapter 5 Data Visualization: Plots 156 5.1 Graphics Objects and Their Parent/Children Relationship 157 5.2 Graphics Objects Properties 160 5.3 Figure Objects 164 5.4 Axes Objects 165 5.5 Line Objects 169 5.6 Text Objects 171 5.7 Legend Objects 174 5.8 Bar Plots 175 5.9 Pie Plots 177 5.10 3-D Line Plots 178 5.11 Surface and Mesh Plots 179 5.12 Contour Plots 183 5.13 Vector Plots 185 5.14 Streamline Plots 186 5.15 Isosurface Plots 188 5.16 Additional Exercise Problems 189

Contents 3 Chapter 6 Animations, Images, Audios, and Videos 192 6.1 Animation of Line Plots: Comet 193 6.2 Stream Particles Animations 194 6.3 Movie: Animation of an Engine 196 6.4 Indexed Images 198 6.5 True Color Images 200 6.6 Audios 202 6.7 Videos 204 6.8 Example: Statically Determinate Trusses (Version IV) 205 6.9 Additional Exercise Problems 208 Chapter 7 Data Import and Export 210 7.1 Screen Text I/O 211 7.2 Low-Level Text File I/O 214 7.3 Low-Level Binary File I/O 217 7.4 MAT-Files 218 7.5 ASCII-Delimited Files 219 7.6 Excel Spreadsheet Files 220 7.7 Additional Exercise Problems 221 Chapter 8 Graphical User Interfaces 224 8.1 Predefined Dialog Boxes 225 8.2 UI-Controls: Pushbuttons 228 8.3 Example: Image Viewer 231 8.4 UI-Menus: Image Viewer 233 8.5 Panels, Button Groups, and More UI-Controls 235 8.6 UI-Controls: Sliders 239 8.7 UI-Tables: Truss Data 240 8.8 Example: Statically Determinate Trusses (Version V) 243 8.9 GUIDE: Graphical User Interface Development Environment 249 8.10 Additional Exercise Problems 260 Chapter 9 Symbolic Mathematics 262 9.1 Symbolic Constants, Variables, Functions, and Expressions 263 9.2 Simplification of Expressions 266 9.3 Example: Curvature of a Planar Curve 268 9.4 Example: Normal Distributions 270 9.5 Limits 271 9.6 Example: Taylor Series 272 9.7 Algebraic Equations 273 9.8 Inverse of Matrix: Hookes's Law 275 9.9 Ordinary Differential Equations (ODE) 276 9.10 Additional Exercise Problems 280

4 Contents Contents 4 Chapter 10 Linear Algebra, Polynomial, Curve Fitting, and Interpolation 282 10.1 Products of Vectors 283 10.2 Systems of Linear Equations 286 10.3 How Does Backslash Operator Work? 289 10.4 Eigenvalue Problems 292 10.5 Polynomials 293 10.6 Polynomial Curve Fittings 296 10.7 Using Interactive Curve-Fitting Tools 298 10.8 Linear Regression Through Origin: Brake Assembly 300 10.9 Interpolations 303 10.10 Two-Dimensional Interpolations 305 Chapter 11 Differentiation, Integration, and Differential Equations 306 11.1 Numerical Differentiation 307 11.2 Numerical Integration: trapz 309 11.3 Length of a Curve 310 11.4 User-Defined Function as Input Argument: integral 312 11.5 Area and Centroid 313 11.6 Placing Weight on Spring Scale 315 11.7 Double Integral: Volume Under Stadium Dome 317 11.8 Initial Value Problems 318 11.9 IVP: Placing Weight on Spring Scale 321 11.10 ODE-BVP: Deflection of Beams 323 11.11 IBVP: Heat Conduction in a Wall 326 Chapter 12 Nonlinear Equations and Optimization 330 12.1 Nonlinear Equations: Intersection of Two Curves 331 12.2 Kinematics of Four-Bar Linkage 333 12.3 Asymmetrical Two-Spring System 336 12.4 Linear Programming: Diet Problem 338 12.5 Mixed-Integer Linear Programming 342 12.6 Unconstrained Single-Variable Optimization 344 12.7 Unconstrained Multivariate Optimization 347 12.8 Multivariate Linear Regression 350 12.9 Non-Polynomial Curve Fitting 352 12.10 Constrained Optimization 355

Contents 5 Chapter 13 Statistics 360 13.1 Descriptive Statistics 361 13.2 Normal Distribution 367 13.3 Central Limit Theory 370 13.4 Confidence Interval 374 13.5 Chi-Square Distribution 376 13.6 Student's t-distribution 380 13.7 One-Sample t-test: Power Supply 382 13.8 Linear Combination of Random Variables 384 13.9 Two-Sample t-test: Injection Molded Plastic 385 13.10 F-Distribution 387 13.11 Two-Sample F-Test: Injection Molded Plastic 389 13.12 Comparison of Means by F-Test 391 Index 393