ENGR 1181 Autumn 2015 Final Exam Study Guide and Practice Problems
|
|
- Isabella Mathews
- 5 years ago
- Views:
Transcription
1 ENGR 1181 Autumn 2015 Final Exam Study Guide and Practice Problems Disclaimer Problems seen in this study guide may resemble problems relating mainly to the pertinent homework assignments. Reading this study guide and solving the practice problems is not a sufficient level of studying for this exam. Students should also review the relevant reading material and PowerPoint slides as questions will be asked from those places as well. There are six "Show Your Work" practice problems, but there are only two "Show Your Work" problems on the Final Exam. Exam Specifications 50 Points Total 20 points multiple choice (10 questions, 2 pts. each) o Done on Carmen using the "Lockdown Browser Lab" o No other internet access is allowed. Those accessing the internet otherwise will be sent to COAM. Please review OSU s policy on academic misconduct. o Graded automatically on Carmen your score will not be calculated until after the exam is over. 30 points 2 "Show Your Work" problems o All problems will be done in MATLAB and you will create the script files or work from a seed file. Always start your script files by displaying your name, seat number etc. and using close all, clear, clc o Make sure you assign a different name for each PDF file during the exam. o If you test your script file in sections using "%% ", save all changes before you hit the "Run Section" button. Calculators are not allowed. The exam is closed book closed notes. No communication with other students is allowed. Please review OSU s policy on academic misconduct. No use of cell phones. Print your problem solutions (Script File + Command Window) to a PDF and Save the PDF on your Z:Drive.
2 Final Exam Content Review Below are content and learning objectives that will be tested on this exam. Not all learning objectives will be tested exactly as read, however students should use this material to keep track of what they need to review and understand. 1. MATLAB a. Array Creation i. [a, b, c ; d, e, f] notation ii. [min : step : max] notation iii. linspace function iv. I/O Demonstrate proper usage of basic MATLAB features (e.g., the Command Window, script files, other default windows, arithmetic operations, assigning variables and names, built in functions, help command) Demonstrate proper notation for accessing elements from previously assigned onedimensional arrays (e.g., single elements, list of elements) and two dimensional arrays (e.g., those with rows and columns) b. Array Accessing i. Pure array accessing ii. Sub arrays iii. Using the colon operator Demonstrate proper notation for accessing elements from previously assigned onedimensional arrays (e.g., single elements, list of elements) and two dimensional arrays (e.g., those with rows and columns) Explain that a string is a one dimensional array and can be used the same way as numeric arrays c. Array Operations (. Operators) Explain meaning of element by element operations Identify situations where the standard operators in MATLAB (when used with arrays) are reserved for linear algebra, which is not always element by element Apply dot operators for o The six cases where linear algebra is not element by element and therefore dot operators are needed to produce element by element calculations
3 d. MATLAB algebra syntax (conversion from math expression) Explain meaning of element by element operations Identify need to translate mathematical notation into proper MATLAB syntax e. Conditional Statements and logical operators Explain how conditional statements (e.g., if end, if else end, switch case) are used to make decisions Apply logical operations correctly in arrays Analyze data using logical operators. f. MATLAB looping Use more complex ways of setting the loop index Use loops to repeat a code with conditional statements g. Functions Demonstrate the proper use of functions in programs Explain how functions can be used in multiple places and as an organizational tool Describe purpose and structure of a function definition line Integrate user written functions into the same file with the main program Identify good function conventions, (e.g., the importance of placing functions at the end h. Plotting Create 2D plots in MATLAB with good graphing conventions (e.g., legend, linestyles, title, multiple plots on same graph) Create other 2D graphing options in MATLAB (e.g., log, bar, subplot, fplot) Select the proper opportunities to utilize aforementioned 2D graphing options i. Other Perform simulations using MATLAB programming skills that have been learned thus far Identify the limitations of computer based solutions
4 Illustrate how the real world responds to the development of and limitations of computer solutions 2. Labs a. Quality and productivity Describe how an engineer can help enhance productivity, speed, quality, cost and sustainability in the manufacturing process. Identify the core, fundamental principles of Lean (eliminating waste) and Sigma (reducing variation in the product). Explain the fundamental difference between PUSH and PULL systems on the assembly line. b. Circuits Ohm s law Series and parallel resistors Voltage drop Recognize and assemble series and parallel circuits. Construct electric circuits using a breadboard. Demonstrate how voltage, current and resistance are measured. Identify and use Ohm s Law, Power Law, Kirchhoff s Current Law and Kirchhoff s Voltage Law. Calculate and measure the equivalent resistance of electric circuits. Employ the proper circuit configuration for a given scenario. c. Solar Meter Describe and build both a calibration and solar meter circuit Convert decimal values to binary values Compare a pictorial image of a circuit to a schematic wiring diagram d. Solar Cell Identify the advantages and disadvantages of solar cells. Calculate the efficiency of a solar cell. e. Beam Bending Employ the concepts of stress, strain, and Young's modulus for structural materials. Use the stress strain equation to calculate how applied forces deform structures. Calculate the moment of inertia of various beam geometries.
5 Determine how beam geometry affects the stiffness and strength of beams. Identify unknown beam material through analysis and calculation of Young s Modulus. Evaluate behavior of various beams based on material and shape. f. Wind Turbine part A Describe the relationship between velocity (of the wind) and pressure based on Bernoulli s Equation for incompressible flow. Calculate the power available in the wind and compare it to the power generated by a wind turbine. Summarize the characteristics of the wind tunnel and turbine. Describe the relationship between velocity (of the wind) and pressure. Determine the power available in the wind. Relate the power available in the wind to the wind speed. Compare the power generated by a wind turbine to the power in the wind. g. Train Project Use train project functions to program train and gate motions Use "Flags" to solve timing and logic problems typical of the train project Solve complex train project problems involving previously used concepts Apply knowledge of tic and toc to solve problems in real time programming Here is a syntax guide for help in reviewing. PRINTING AND BRINGING THIS TO THE EXAM IS NOT ALLOWED. MatLab Syntax Review Sheet FOR MIDTERM 2 RELEVANT INFORMATION ONLY Current Directory your current working directory with a list of m files Workspace current list of MatLab variables and values Command History past commands that have been typed and executed Command Window where commands can be entered Editor Window where you write and run MatLab script files Type "help (keyword)" in the MATLAB command window in order to find help for the "Show Your Work" problems!
6 MatLab Tips and Syntax >> clc clear command window; does not clear memory >> cmd displays the result of a command in the command window >> cmd; does not display the result in the command window >> cmd1, cmd2 displays both results >> cmd1; cmd2 displays last result only clear clear x,y,z variable names math precedence... (ellipsis) up arrow down arrow clears ALL variables from memory clears only x, y, and z 2. must begin with a letter 3. are case sensitive contain letters, numbers, and _ highest ( ) ; ^ ; * / ; + lowest 4. extends a command to the next line scrolls backward through previous commands scrolls forward through commands help abcd help on the subject "abcd" ( doc abcd works too ) Numeric Display Formats format short format long format short e format bank nnn.1234 nnn (14 decimal places) n.1234e+001 nnn.12 Input / Output Commands disp( ' any text ' ) fprintf('text = %i,%f',k,x) x = input( ' any text ' ) displays ' any text ' in the command window formatted output prints "Text = integer and fixed point" asks the user to enter a value for x from the keyboard 1 D Array (row and column vectors) scalar, s vector, v is a single number (a 1 x 1 array) is a 1 row x n column array a list of numbers v_list = [ a b c ] or = [ a, b, c ] row vector v_row = [ a b c ] or = [ a, b, c ]
7 column vector v_col = [ a ; b ; c ] constant spacing v_space = [ first : space : last ] single spacing v_1space = [ first : last ] vector with n terms, evenly spaced v_nterms = linspace( first, last, n ) transpose of a vector value of the ith term Addition / Subtraction Multiplication / Division v_col = v_row ' v(i) z = x y z = [,, z = x.* y and z = x. / y Exponents z = x.^ y z = [.^,.^,. ] max(v) or min (v) length(v) mean(v) or sum(v) Returns largest / smallest element of v Returns the length (# of elements) in vector v Returns average value / sum of elements in v 2 D Array (matrix) Matrix, A is an r (rows) X c (columns) array A( r, c ) is the value of the element ( r, c ) in A A( r, c ), in rows A = [ row1 ; row2 ; row3 ] A( r1:r2, c1:c2 ) retrieves values in row and column ranges Example: A(1:3, [1 4 6]) means rows 1 3 and columns 1,4,6 of matrix A Logic Conditional and Relational Operators Less than / Greater than < / > Less than equal to / greater than equal to <= / >= Equal to / Not equal to == / ~= TRUE statement / FALSE statement 1 (or any non zero number) / 0 & AND ( Example: A & B ) TRUE when A and B are both true OR ( Example: A B ) TRUE when either A is true or B is true ~ NOT ( Example: ~ A ) TRUE if A is false / FALSE if A is true Operator precedence ( high low ) ( ) ^ ~ */ + > < >= <= == ~= &
8 Conditional Statements if conditional statement Works when there is only one command group Command Group end if conditional statement Command Group 1 else If the conditional statement is "True", then do "Command Group 1". It the conditional statement is "False", then do "Command Group 2". Command Group 2 end if ( conditional 1 ) do Command Group 1 elseif ( conditional 2 ) do Command Group 2 elseif ( conditional 3 ) do Command Group 3 else do Command Group 4 end "If elseif else end" When there are more than two command groups, you can use this form with elseif Elseif = if not the first, do the second, or if not the second, do the third, etc. The "else" never has a conditional and is optional. Loops k = first : step : last Example of a loop in a script file: This loop calculates a new vector v2 from an existing vector v1. Note that the loop uses vector addressing. Loop index variable = first value : step size : last value v1 = [ 0 : 5 : 25 ] ; % Define the vector v1 for i = 1 : length (v1) % The step size is 1 % Each pass in the loop v2(i) = v1(i) ^ 2 ; % calculates a new element % in the vector v2 end disp(v2)
9 Common Functions sqrt(x) exp(x) abs(x) log(x) log10(x) factorial(x) sin(x) / cos(x) / tan(x) sind(x) / cosd(x) / tand(x) round(x) fix(x) ceil(x) floor(x) rem(x,y) if rem(x,y) == 0 sign(x) square root of x = exponential function absolute value of x natural log of x log base 10 of x factorial function [ x! ], where x is a positive integer trig functions with angle in radians trig functions with angle in degrees Round to the nearest integer Round toward zero Round toward infinity Round toward negative infinity Equals the remainder of x divided by y Conditional test that is true when x is a multiple of y Signum function returns [1 if x>0], [ 1 if x<0], [0 if x=0]
10 Practice Problems Problem 1: Show your work problem Use MATLAB to create a script file to accomplish the task described below. Save pdf files of both the script file and the plot. Write a script file that plots the step input response of an RC circuit and an RLC circuit. Use a time interval 0 10 in increments of 0.01 seconds. The output V of each equation is in units of volts (V). Plot all three functions below for the time interval given is the natural frequency and 0.5 (0.5 cycles/sec) τ is the time constant, 3 Start your script file with disp( Your Name, seat # )
11 Problem 2: Show your work problem Use MATLAB to create a script file to accomplish the task described below. Save pdf files of both the script file and the plot. Write a script file that plots the three functions in the range 0 50 in increments of 1. Units are not necessary for labeling the plot Start your script file with disp( Your Name, seat # )
12 Problem 3: Show your work problem Use MATLAB to create a script file to accomplish the task described below. Save pdf files of the script file, the plot and the command window output. Write a script file that plots the function given and calculates the area under the function for a range 0 in increments of sin Where N = 31,416 or the length of. Start your script file with disp( Your Name, seat # )
13 Problem 4: Show your work problem Use MATLAB to create a script file to accomplish the task described below. Save pdf files of the script file, the plot and the command window output. Write a script file that plots the function given and calculates the number of elements in the ranges listed below. Use a range for the plot and values of the function of 0 20 seconds in increments of s. Print the number of elements in each range with fprintf. 2.3 sin Start your script file with disp( Your Name, seat # )
14 Problem 5: Show your work problem Use MATLAB to create a script file to accomplish the task described below. Save pdf files of the script file only. Write a script file representing the code that the flow chart is outlining. The flow chart represents logic that will compute N! according to the equation! You do not have to run the script file with an input. Just print the script file as is. Start N_fact = 1 clc clear for i = 2:N Display YOUR student information. N_fact = N_fact*i i = i + 1 Ask user to assign input number to N Display N_fact End
15 Problem 6: Show your work problem Use MATLAB to create a script file to accomplish the task described below. Save pdf files of the script file only. Write a script file representing the code that the flow chart is outlining. The flow chart represents logic that will determine MATLAB s computational speed running a while loop for 10 seconds. You do not have to run the script file with an input. Just print the script file as is. Start while toc 10 clc clear cycles = cycles + 1 Display YOUR student information. speed = cycles/ toc cycles = 0 tic Display computational speed to command window End
16 1) A plot is created by: 'plot(time,velocity,time,distance,time,acceleration)'. Write a single command to create a proper legend with labels DISTANCE, VELOCITY and ACCELERATION which corresponds to the generated plot. 2) Write a single command to plot vector Distance as a function of vector Time. The plot produced should contain dashed red lines and no markers. 3) Given that x=[ ; ; ] has been assigned, what would be the result of y=x(2:3,[1 2 4])? 4) Given a 10 by 3 matrix M, write a single command that extracts all members of the 3 rd column of matrix M and assigns it to a vector called M_col_3 using the colon operator. 5) The current flowing in the circuit is most nearly: a A b A c A d. None of the above. 5 V 10 Ω 10 Ω 40 Ω 40 Ω
17 6) Given that x = [3 6 9] has been executed in the command window, what is the command necessary to evaluate the expression 2 x x 2 x 3 1? (You must use only the necessary dot operators) 7) Given that x = [1:0.1:3] has been executed in the command window, what is the command necessary to evaluate the expression 2cos tan /? (You must use only the necessary dot operators) 8) Given the function definition below, which variables are the input variables? function [z] = primenumber(x,y) 9) Given the function definition below, what should the function file name be? function [z] = primenumber(x,y) 10) Given the function definition below, can you use x as written within the main script file? function [z] = primenumber(x,y)
ENGR 1181c Midterm Exam 2: Study Guide and Practice Problems
ENGR 1181c Midterm Exam 2: Study Guide and Practice Problems Disclaimer Problems seen in this study guide may resemble problems relating mainly to the pertinent homework assignments. Reading this study
More informationENGR 1181 Midterm Exam 2: Study Guide and Practice Problems
ENGR 1181 Midterm Exam 2: Study Guide and Practice Problems Disclaimer Problems seen in this study guide may resemble problems relating mainly to the pertinent homework assignments. Reading this study
More informationIntroduction to Engineering gii
25.108 Introduction to Engineering gii Dr. Jay Weitzen Lecture Notes I: Introduction to Matlab from Gilat Book MATLAB - Lecture # 1 Starting with MATLAB / Chapter 1 Topics Covered: 1. Introduction. 2.
More informationPROGRAMMING WITH MATLAB DR. AHMET AKBULUT
PROGRAMMING WITH MATLAB DR. AHMET AKBULUT OVERVIEW WEEK 1 What is MATLAB? A powerful software tool: Scientific and engineering computations Signal processing Data analysis and visualization Physical system
More informationChapter 2 (Part 2) MATLAB Basics. dr.dcd.h CS 101 /SJC 5th Edition 1
Chapter 2 (Part 2) MATLAB Basics dr.dcd.h CS 101 /SJC 5th Edition 1 Display Format In the command window, integers are always displayed as integers Characters are always displayed as strings Other values
More informationIntroduction to MatLab. Introduction to MatLab K. Craig 1
Introduction to MatLab Introduction to MatLab K. Craig 1 MatLab Introduction MatLab and the MatLab Environment Numerical Calculations Basic Plotting and Graphics Matrix Computations and Solving Equations
More informationWelcome to EGR 106 Foundations of Engineering II
Welcome to EGR 106 Foundations of Engineering II Course information Today s specific topics: Computation and algorithms MATLAB Basics Demonstrations Material in textbook chapter 1 Computation What is computation?
More informationChapter 1 Introduction to MATLAB
Chapter 1 Introduction to MATLAB 1.1 What is MATLAB? MATLAB = MATrix LABoratory, the language of technical computing, modeling and simulation, data analysis and processing, visualization and graphics,
More informationQuick MATLAB Syntax Guide
Quick MATLAB Syntax Guide Some useful things, not everything if-statement Structure: if (a = = = ~=
More informationPART 1 PROGRAMMING WITH MATHLAB
PART 1 PROGRAMMING WITH MATHLAB Presenter: Dr. Zalilah Sharer 2018 School of Chemical and Energy Engineering Universiti Teknologi Malaysia 23 September 2018 Programming with MATHLAB MATLAB Environment
More information9 Using Equation Networks
9 Using Equation Networks In this chapter Introduction to Equation Networks 244 Equation format 247 Using register address lists 254 Setting up an enable contact 255 Equations displayed within the Network
More informationOutline. CSE 1570 Interacting with MATLAB. Starting MATLAB. Outline. MATLAB Windows. MATLAB Desktop Window. Instructor: Aijun An.
CSE 170 Interacting with MATLAB Instructor: Aijun An Department of Computer Science and Engineering York University aan@cse.yorku.ca Outline Starting MATLAB MATLAB Windows Using the Command Window Some
More informationIntroduction to MATLAB
ELG 3125 - Lab 1 Introduction to MATLAB TA: Chao Wang (cwang103@site.uottawa.ca) 2008 Fall ELG 3125 Signal and System Analysis P. 1 Do You Speak MATLAB? MATLAB - The Language of Technical Computing ELG
More informationENGR Fall Exam 1
ENGR 1300 Fall 01 Exam 1 INSTRUCTIONS: Duration: 60 minutes Keep your eyes on your own work! Keep your work covered at all times! 1. Each student is responsible for following directions. Read carefully..
More informationOutline. CSE 1570 Interacting with MATLAB. Starting MATLAB. Outline (Cont d) MATLAB Windows. MATLAB Desktop Window. Instructor: Aijun An
CSE 170 Interacting with MATLAB Instructor: Aijun An Department of Computer Science and Engineering York University aan@cse.yorku.ca Outline Starting MATLAB MATLAB Windows Using the Command Window Some
More informationENGR 1181 Final Exam: Practice Problem Solutions
ENGR 1181 Final Exam: Practice Problem Solutions Problem 1: Solution disp('practice Problem 1'); disp('12/1/14'); t = (0:0.01:10); % forms "t" array from 0 to 10 in increments of 0.01 tau = 3; % defines
More informationOutline. CSE 1570 Interacting with MATLAB. Outline. Starting MATLAB. MATLAB Windows. MATLAB Desktop Window. Instructor: Aijun An.
CSE 10 Interacting with MATLAB Instructor: Aijun An Department of Computer Science and Engineering York University aan@cse.yorku.ca Outline Starting MATLAB MATLAB Windows Using the Command Window Some
More informationChapter 2. MATLAB Basis
Chapter MATLAB Basis Learning Objectives:. Write simple program modules to implement single numerical methods and algorithms. Use variables, operators, and control structures to implement simple sequential
More informationConsider this m file that creates a file that you can load data into called rain.txt
SAVING AND IMPORTING DATA FROM A DATA FILES AND PROCESSING AS A ONE DIMENSIONAL ARRAY If we save data in a file sequentially than we can call it back sequentially into a row vector. Consider this m file
More informationIntroduction to PartSim and Matlab
NDSU Introduction to PartSim and Matlab pg 1 PartSim: www.partsim.com Introduction to PartSim and Matlab PartSim is a free on-line circuit simulator that we use in Circuits and Electronics. It works fairly
More informationChapter 3. built in functions help feature elementary math functions data analysis functions random number functions computational limits
Chapter 3 built in functions help feature elementary math functions data analysis functions random number functions computational limits I have used resources for instructors, available from the publisher
More informationTo start using Matlab, you only need be concerned with the command window for now.
Getting Started Current folder window Atop the current folder window, you can see the address field which tells you where you are currently located. In programming, think of it as your current directory,
More informationMATLAB Tutorial EE351M DSP. Created: Thursday Jan 25, 2007 Rayyan Jaber. Modified by: Kitaek Bae. Outline
MATLAB Tutorial EE351M DSP Created: Thursday Jan 25, 2007 Rayyan Jaber Modified by: Kitaek Bae Outline Part I: Introduction and Overview Part II: Matrix manipulations and common functions Part III: Plots
More informationIntroduction to MATLAB
to MATLAB Spring 2019 to MATLAB Spring 2019 1 / 39 The Basics What is MATLAB? MATLAB Short for Matrix Laboratory matrix data structures are at the heart of programming in MATLAB We will consider arrays
More informationChapter 4: Basic C Operators
Chapter 4: Basic C Operators In this chapter, you will learn about: Arithmetic operators Unary operators Binary operators Assignment operators Equalities and relational operators Logical operators Conditional
More informationSECTION 1: INTRODUCTION. ENGR 112 Introduction to Engineering Computing
SECTION 1: INTRODUCTION ENGR 112 Introduction to Engineering Computing 2 Course Overview What is Programming? 3 Programming The implementation of algorithms in a particular computer programming language
More informationIntroduction to Computer Programming in Python Dr. William C. Bulko. Data Types
Introduction to Computer Programming in Python Dr William C Bulko Data Types 2017 What is a data type? A data type is the kind of value represented by a constant or stored by a variable So far, you have
More informationIntroduction to MATLAB. Computational Probability and Statistics CIS 2033 Section 003
Introduction to MATLAB Computational Probability and Statistics CIS 2033 Section 003 About MATLAB MATLAB (MATrix LABoratory) is a high level language made for: Numerical Computation (Technical computing)
More informationIntroduction to MATLAB for Engineers, Third Edition
PowerPoint to accompany Introduction to MATLAB for Engineers, Third Edition William J. Palm III Chapter 2 Numeric, Cell, and Structure Arrays Copyright 2010. The McGraw-Hill Companies, Inc. This work is
More informationStarting Matlab. MATLAB Laboratory 09/09/10 Lecture. Command Window. Drives/Directories. Go to.
Starting Matlab Go to MATLAB Laboratory 09/09/10 Lecture Lisa A. Oberbroeckling Loyola University Maryland loberbroeckling@loyola.edu http://ctx.loyola.edu and login with your Loyola name and password...
More informationProcess Optimization
Process Optimization Tier II: Case Studies Section 1: Lingo Optimization Software Optimization Software Many of the optimization methods previously outlined can be tedious and require a lot of work to
More informationThis is a basic tutorial for the MATLAB program which is a high-performance language for technical computing for platforms:
Appendix A Basic MATLAB Tutorial Extracted from: http://www1.gantep.edu.tr/ bingul/ep375 http://www.mathworks.com/products/matlab A.1 Introduction This is a basic tutorial for the MATLAB program which
More informationWhat is MATLAB? What is MATLAB? Programming Environment MATLAB PROGRAMMING. Stands for MATrix LABoratory. A programming environment
What is MATLAB? MATLAB PROGRAMMING Stands for MATrix LABoratory A software built around vectors and matrices A great tool for numerical computation of mathematical problems, such as Calculus Has powerful
More informationWhat is a Function? EF102 - Spring, A&S Lecture 4 Matlab Functions
What is a Function? EF102 - Spring, 2002 A&S Lecture 4 Matlab Functions What is a M-file? Matlab Building Blocks Matlab commands Built-in commands (if, for, ) Built-in functions sin, cos, max, min Matlab
More informationMcTutorial: A MATLAB Tutorial
McGill University School of Computer Science Sable Research Group McTutorial: A MATLAB Tutorial Lei Lopez Last updated: August 2014 w w w. s a b l e. m c g i l l. c a Contents 1 MATLAB BASICS 3 1.1 MATLAB
More informationFinding, Starting and Using Matlab
Variables and Arrays Finding, Starting and Using Matlab CSC March 6 &, 9 Array: A collection of data values organized into rows and columns, and known by a single name. arr(,) Row Row Row Row 4 Col Col
More informationENGR Fall Exam 1
ENGR 13100 Fall 2012 Exam 1 INSTRUCTIONS: Duration: 60 minutes Keep your eyes on your own work! Keep your work covered at all times! 1. Each student is responsible for following directions. Read carefully.
More informationMATLAB. A Tutorial By. Masood Ejaz
MATLAB A Tutorial By Masood Ejaz Note: This tutorial is a work in progress and written specially for CET 3464 Software Programming in Engineering Technology, a course offered as part of BSECET program
More informationMatlab Programming Introduction 1 2
Matlab Programming Introduction 1 2 Mili I. Shah August 10, 2009 1 Matlab, An Introduction with Applications, 2 nd ed. by Amos Gilat 2 Matlab Guide, 2 nd ed. by D. J. Higham and N. J. Higham Starting Matlab
More informationClass #15: Experiment Introduction to Matlab
Class #15: Experiment Introduction to Matlab Purpose: The objective of this experiment is to begin to use Matlab in our analysis of signals, circuits, etc. Background: Before doing this experiment, students
More information6-1 (Function). (Function) !*+!"#!, Function Description Example. natural logarithm of x (base e) rounds x to smallest integer not less than x
(Function) -1.1 Math Library Function!"#! $%&!'(#) preprocessor directive #include !*+!"#!, Function Description Example sqrt(x) square root of x sqrt(900.0) is 30.0 sqrt(9.0) is 3.0 exp(x) log(x)
More informationBoolean Logic & Branching Lab Conditional Tests
I. Boolean (Logical) Operations Boolean Logic & Branching Lab Conditional Tests 1. Review of Binary logic Three basic logical operations are commonly used in binary logic: and, or, and not. Table 1 lists
More informationEP375 Computational Physics
EP375 Computational Physics Topic 1 MATLAB TUTORIAL BASICS Department of Engineering Physics University of Gaziantep Feb 2014 Sayfa 1 Basic Commands help command get help for a command clear all clears
More informationProgramming in Mathematics. Mili I. Shah
Programming in Mathematics Mili I. Shah Starting Matlab Go to http://www.loyola.edu/moresoftware/ and login with your Loyola name and password... Matlab has eight main windows: Command Window Figure Window
More informationIntroduction to Matlab
NDSU Introduction to Matlab pg 1 Becoming familiar with MATLAB The console The editor The graphics windows The help menu Saving your data (diary) Solving N equations with N unknowns Least Squares Curve
More information1. Register an account on: using your Oxford address
1P10a MATLAB 1.1 Introduction MATLAB stands for Matrix Laboratories. It is a tool that provides a graphical interface for numerical and symbolic computation along with a number of data analysis, simulation
More informationIntroduction to MATLAB 7 for Engineers
PowerPoint to accompany Introduction to MATLAB 7 for Engineers William J. Palm III Chapter 2 Numeric, Cell, and Structure Arrays Copyright 2005. The McGraw-Hill Companies, Inc. Permission required for
More informationDigital Image Analysis and Processing CPE
Digital Image Analysis and Processing CPE 0907544 Matlab Tutorial Dr. Iyad Jafar Outline Matlab Environment Matlab as Calculator Common Mathematical Functions Defining Vectors and Arrays Addressing Vectors
More informationMATLAB Tutorial. Digital Signal Processing. Course Details. Topics. MATLAB Environment. Introduction. Digital Signal Processing (DSP)
Digital Signal Processing Prof. Nizamettin AYDIN naydin@yildiz.edu.tr naydin@ieee.org http://www.yildiz.edu.tr/~naydin Course Details Course Code : 0113620 Course Name: Digital Signal Processing (Sayısal
More informationNumerical Analysis First Term Dr. Selcuk CANKURT
ISHIK UNIVERSITY FACULTY OF ENGINEERING and DEPARTMENT OF COMPUTER ENGINEERING Numerical Analysis 2017-2018 First Term Dr. Selcuk CANKURT selcuk.cankurt@ishik.edu.iq Textbook Main Textbook MATLAB for Engineers,
More informationExperiment 1: Introduction to MATLAB I. Introduction. 1.1 Objectives and Expectations: 1.2 What is MATLAB?
Experiment 1: Introduction to MATLAB I Introduction MATLAB, which stands for Matrix Laboratory, is a very powerful program for performing numerical and symbolic calculations, and is widely used in science
More informationMath 2250 MATLAB TUTORIAL Fall 2005
Math 2250 MATLAB TUTORIAL Fall 2005 Math Computer Lab The Mathematics Computer Lab is located in the T. Benny Rushing Mathematics Center (located underneath the plaza connecting JWB and LCB) room 155C.
More informationIntroduction 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 informationLecturer: Keyvan Dehmamy
MATLAB Tutorial Lecturer: Keyvan Dehmamy 1 Topics Introduction Running MATLAB and MATLAB Environment Getting help Variables Vectors, Matrices, and linear Algebra Mathematical Functions and Applications
More informationANSI C Programming Simple Programs
ANSI C Programming Simple Programs /* This program computes the distance between two points */ #include #include #include main() { /* Declare and initialize variables */ double
More informationOne-dimensional Array
One-dimensional Array ELEC 206 Prof. Siripong Potisuk 1 Defining 1-D Array Also known as a vector A list of numbers arranged in a row row vector or a column column vector A scalar variable is a one-element
More informationConstraint-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 informationA Short Introduction to Matlab
A Short Introduction to Matlab Sheng Xu & Daniel Reynolds SMU Mathematics, 2015 1 What is Matlab? Matlab is a computer language with many ready-to-use powerful and reliable algorithms for doing numerical
More informationNo, not unless you specify in MATLAB which folder directory to look for it in, which is outside of the scope of this course.
ENGR 1181 Midterm 2 Review Worksheet SOLUTIONS Note: This practice material does not contain actual test questions or represent the format of the midterm. The first 29 questions should be completed WITHOUT
More informationTo see what directory your work is stored in, and the directory in which Matlab will look for files, type
Matlab Tutorial For Machine Dynamics, here s what you ll need to do: 1. Solve n equations in n unknowns (as in analytical velocity and acceleration calculations) - in Matlab, this is done using matrix
More informationMATLAB Tutorial. Mohammad Motamed 1. August 28, generates a 3 3 matrix.
MATLAB Tutorial 1 1 Department of Mathematics and Statistics, The University of New Mexico, Albuquerque, NM 87131 August 28, 2016 Contents: 1. Scalars, Vectors, Matrices... 1 2. Built-in variables, functions,
More informationIntroduction to MATLAB
Introduction to MATLAB The Desktop When you start MATLAB, the desktop appears, containing tools (graphical user interfaces) for managing files, variables, and applications associated with MATLAB. The following
More informationTECH TIP VISION Calibration and Data Acquisition Software
TECH TIP VISION Calibration and Data Acquisition Software May 2016 Using Calculated Channels in VISION Calculated channels are data items created in a Recorder file whose values are calculated from other
More informationDr Richard Greenaway
SCHOOL OF PHYSICS, ASTRONOMY & MATHEMATICS 4PAM1008 MATLAB 2 Basic MATLAB Operation Dr Richard Greenaway 2 Basic MATLAB Operation 2.1 Overview 2.1.1 The Command Line In this Workshop you will learn how
More informationOrdinary Differential Equation Solver Language (ODESL) Reference Manual
Ordinary Differential Equation Solver Language (ODESL) Reference Manual Rui Chen 11/03/2010 1. Introduction ODESL is a computer language specifically designed to solve ordinary differential equations (ODE
More informationELEC4042 Signal Processing 2 MATLAB Review (prepared by A/Prof Ambikairajah)
Introduction ELEC4042 Signal Processing 2 MATLAB Review (prepared by A/Prof Ambikairajah) MATLAB is a powerful mathematical language that is used in most engineering companies today. Its strength lies
More informationIntroduction to MATLAB
Introduction to MATLAB Dr./ Ahmed Nagib Mechanical Engineering department, Alexandria university, Egypt Spring 2017 Chapter 4 Decision making and looping functions (If, for and while functions) 4-1 Flowcharts
More information2.0 MATLAB Fundamentals
2.0 MATLAB Fundamentals 2.1 INTRODUCTION MATLAB is a computer program for computing scientific and engineering problems that can be expressed in mathematical form. The name MATLAB stands for MATrix LABoratory,
More informationMATLAB 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 informationMATLAB INTRODUCTION. Risk analysis lab Ceffer Attila. PhD student BUTE Department Of Networked Systems and Services
MATLAB INTRODUCTION Risk analysis lab 2018 2018. szeptember 10., Budapest Ceffer Attila PhD student BUTE Department Of Networked Systems and Services ceffer@hit.bme.hu Előadó képe MATLAB Introduction 2
More informationELEMENTARY MATLAB PROGRAMMING
1 ELEMENTARY MATLAB PROGRAMMING (Version R2013a used here so some differences may be encountered) COPYRIGHT Irving K. Robbins 1992, 1998, 2014, 2015 All rights reserved INTRODUCTION % It is assumed the
More informationScientific Computing with MATLAB
Scientific Computing with MATLAB Dra. K.-Y. Daisy Fan Department of Computer Science Cornell University Ithaca, NY, USA UNAM IIM 2012 2 Focus on computing using MATLAB Computer Science Computational Science
More informationIntroduction to MATLAB Practical 1
Introduction to MATLAB Practical 1 Daniel Carrera November 2016 1 Introduction I believe that the best way to learn Matlab is hands on, and I tried to design this practical that way. I assume no prior
More informationIntroduction to Scientific and Engineering Computing, BIL108E. Karaman
USING MATLAB INTRODUCTION TO SCIENTIFIC & ENGINEERING COMPUTING BIL 108E, CRN24023 To start from Windows, Double click the Matlab icon. To start from UNIX, Dr. S. Gökhan type matlab at the shell prompt.
More informationProgramming in MATLAB
trevor.spiteri@um.edu.mt http://staff.um.edu.mt/trevor.spiteri Department of Communications and Computer Engineering Faculty of Information and Communication Technology University of Malta 17 February,
More informationLab 1 Intro to MATLAB and FreeMat
Lab 1 Intro to MATLAB and FreeMat Objectives concepts 1. Variables, vectors, and arrays 2. Plotting data 3. Script files skills 1. Use MATLAB to solve homework problems 2. Plot lab data and mathematical
More informationLAB 1 General MATLAB Information 1
LAB 1 General MATLAB Information 1 General: To enter a matrix: > type the entries between square brackets, [...] > enter it by rows with elements separated by a space or comma > rows are terminated by
More informationIntroduction to Matlab. By: Dr. Maher O. EL-Ghossain
Introduction to Matlab By: Dr. Maher O. EL-Ghossain Outline: q What is Matlab? Matlab Screen Variables, array, matrix, indexing Operators (Arithmetic, relational, logical ) Display Facilities Flow Control
More informationAMS 27L LAB #1 Winter 2009
AMS 27L LAB #1 Winter 2009 Introduction to MATLAB Objectives: 1. To introduce the use of the MATLAB software package 2. To learn elementary mathematics in MATLAB Getting Started: Log onto your machine
More informationChapter 7: Programming in MATLAB
The Islamic University of Gaza Faculty of Engineering Civil Engineering Department Computer Programming (ECIV 2302) Chapter 7: Programming in MATLAB 1 7.1 Relational and Logical Operators == Equal to ~=
More informationTI- Nspire Testing Instructions
TI- Nspire Testing Instructions Table of Contents How to Nsolve How to Check Compositions of Functions How to Verify Compositions of Functions How to Check Factoring How to Use Graphs to Backward Factor
More informationAN INTRODUCTION TO MATLAB
AN INTRODUCTION TO MATLAB 1 Introduction MATLAB is a powerful mathematical tool used for a number of engineering applications such as communication engineering, digital signal processing, control engineering,
More informationIntroduction to Octave/Matlab. Deployment of Telecommunication Infrastructures
Introduction to Octave/Matlab Deployment of Telecommunication Infrastructures 1 What is Octave? Software for numerical computations and graphics Particularly designed for matrix computations Solving equations,
More informationPage 1 of 7 E7 Spring 2009 Midterm I SID: UNIVERSITY OF CALIFORNIA, BERKELEY Department of Civil and Environmental Engineering. Practice Midterm 01
Page 1 of E Spring Midterm I SID: UNIVERSITY OF CALIFORNIA, BERKELEY Practice Midterm 1 minutes pts Question Points Grade 1 4 3 6 4 16 6 1 Total Notes (a) Write your name and your SID on the top right
More informationMATLAB QUICK START TUTORIAL
MATLAB QUICK START TUTORIAL This tutorial is a brief introduction to MATLAB which is considered one of the most powerful languages of technical computing. In the following sections, the basic knowledge
More informationST MARY S COLLEGE FORM ONE COURSE OUTLINE MATHEMATICS. Term 1. Addition and subtraction. Multiplication and division facts
ST MARY S COLLEGE FORM ONE COURSE OUTLINE MATHEMATICS Term 1 1 1 Arithmetic: Place Value Definition of number types and the relation to each other Place value for integers. Number in words and vice versa
More informationIntroduction to Matlab
Introduction to Matlab Kristian Sandberg Department of Applied Mathematics University of Colorado Goal The goal with this worksheet is to give a brief introduction to the mathematical software Matlab.
More informationMethods CSC 121 Fall 2016 Howard Rosenthal
Methods CSC 121 Fall 2016 Howard Rosenthal Lesson Goals Understand what a method is in Java Understand Java s Math Class and how to use it Learn the syntax of method construction Learn both void methods
More informationMatlab Tutorial: Basics
Matlab Tutorial: Basics Topics: opening matlab m-files general syntax plotting function files loops GETTING HELP Matlab is a program which allows you to manipulate, analyze and visualize data. MATLAB allows
More informationIntroduction to MATLAB
58:110 Computer-Aided Engineering Spring 2005 Introduction to MATLAB Department of Mechanical and industrial engineering January 2005 Topics Introduction Running MATLAB and MATLAB Environment Getting help
More informationAMS 27L LAB #2 Winter 2009
AMS 27L LAB #2 Winter 2009 Plots and Matrix Algebra in MATLAB Objectives: 1. To practice basic display methods 2. To learn how to program loops 3. To learn how to write m-files 1 Vectors Matlab handles
More informationChapter 2. Outline. Simple C++ Programs
Chapter 2 Simple C++ Programs Outline Objectives 1. Building C++ Solutions with IDEs: Dev-cpp, Xcode 2. C++ Program Structure 3. Constant and Variables 4. C++ Operators 5. Standard Input and Output 6.
More informationMethods CSC 121 Fall 2014 Howard Rosenthal
Methods CSC 121 Fall 2014 Howard Rosenthal Lesson Goals Understand what a method is in Java Understand Java s Math Class Learn the syntax of method construction Learn both void methods and methods that
More informationIntroduction to Computer Programming with MATLAB Matlab Fundamentals. Selis Önel, PhD
Introduction to Computer Programming with MATLAB Matlab Fundamentals Selis Önel, PhD Today you will learn to create and execute simple programs in MATLAB the difference between constants, variables and
More informationWhat is Matlab? The command line Variables Operators Functions
What is Matlab? The command line Variables Operators Functions Vectors Matrices Control Structures Programming in Matlab Graphics and Plotting A numerical computing environment Simple and effective programming
More informationEngineering Problem Solving with C++, Etter/Ingber
Engineering Problem Solving with C++, Etter/Ingber Chapter 2 Simple C++ Programs C++, Second Edition, J. Ingber 1 Simple C++ Programs Program Structure Constants and Variables C++ Operators Standard Input
More information1) As a logical statement, is 1 considered true or false in MATLAB? Explain your answer.
ENGR 1181 Midterm 2+ Review Note: This practice material does not contain actual test questions or represent the format of the final. The first 20 questions should be completed WITHOUT using MATLAB. This
More informationInlichtingenblad, matlab- en simulink handleiding en practicumopgaven IWS
Inlichtingenblad, matlab- en simulink handleiding en practicumopgaven IWS 1 6 3 Matlab 3.1 Fundamentals Matlab. The name Matlab stands for matrix laboratory. Main principle. Matlab works with rectangular
More informationPowerPoints organized by Dr. Michael R. Gustafson II, Duke University
Part 1 Chapter 2 MATLAB Fundamentals PowerPoints organized by Dr. Michael R. Gustafson II, Duke University All images copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
More informationMATH (CRN 13695) Lab 1: Basics for Linear Algebra and Matlab
MATH 495.3 (CRN 13695) Lab 1: Basics for Linear Algebra and Matlab Below is a screen similar to what you should see when you open Matlab. The command window is the large box to the right containing the
More information