Computational Thinking through Mechatronics

Slides:



Advertisements
Similar presentations
Motion in 2D o Vectors o Projectile Motion Physics -101 Piri Reis University 2010.
Advertisements

Introduction to MATLAB Northeastern University: College of Computer and Information Science Co-op Preparation University (CPU) 10/20/2003.
CS150 Introduction to Computer Science 1 Professor: Chadd Williams.
CVEN Computer Applications in Engineering and Construction Dr. Jun Zhang.
Computer Science 101 Introduction to Programming.
Lecture 2 - Variables, program execution, calculations, print() COMPSCI 101 Principles of Programming.
MCS 177 Lab Fall 2014 Sept. 2, GUSTAVUS ADOLPHUS COLLEGEgustavus.edu Contact Info Course Instructor: Louis Yu Lab.
CS 0004 –Lecture 1 Wednesday, Jan 5 th, 2011 Roxana Gheorghiu.
Math 15 Lecture 7 University of California, Merced Scilab A “Very” Short Introduction.
Copyright © 2012 Pearson Education, Inc. Publishing as Pearson Addison-Wesley C H A P T E R 2 Input, Processing, and Output.
Week 4. Due for this week…  Homework 4 (on MyMathLab – via the Materials Link)  Monday night at 6pm.  Prepare for the final (available tonight 10pm.
Data Representation in Computer Systems
ECE 1304 Introduction to Electrical and Computer Engineering Section 1.1 Introduction to MATLAB.
CGS-2531 Problem Solving with Computer Software Course home page: Course.
PHYSICS 1P03 Introductory Mechanics Me: Dr. W. Okoń Office: ABB Office Hours: 4-5 pm 4-5 pm.
Representing numbers and Basic MATLAB 1. Representing numbers  numbers used by computers do not behave the same as numbers used in mathematics  e.g.,
Input, Output, and Processing
Lecture 1 - Introduction June 3, 2002 CVEN 302. Lecture’s Goals General Introduction to CVEN Computer Applications in Engineering and Construction.
Principles of Financial Accounting I Fall Semester 2007 Orientation Welcome – We are glad you are here! Let’s look at the syllabus for this course.
CSC 221 Computer Organization and Assembly Language
Getting Started with MATLAB 1. Fundamentals of MATLAB 2. Different Windows of MATLAB 1.
Analysis of Algorithms CSCI Previous Evaluations of Programs Correctness – does the algorithm do what it is supposed to do? Generality – does it.
PHY 232: Electricity, Magnetism and Physical Optics Physics for Scientist and Engineers, 7th ed., Serway and Jewett Professor: Dr. Renee Fatemi
CSC 107 – Programming For Science. Announcements  Memorization is not important, but…  … you will all still be responsible for information  Instead.
Copyright © 2012 Pearson Education, Inc. Publishing as Pearson Addison-Wesley C H A P T E R 2 Input, Processing, and Output.
Winter Semester 2014/2015 College of Engineering.
240-Current Research Easily Extensible Systems, Octave, Input Formats, SOA.
1 Week 1: Variables, assignment, expressions READING: 1.2 – 1.4.
1 Welcome to Electronics Len Trombetta TTh 8:30 – 10:00 am W321 D3 Be sure to pick up… - Syllabus - Blackboard handout.
Significant Figure Rules RulesExamples The following are always significant Non zero digits Zeros between non zero digits Zero to the right of a non zero.
EECS 1541 Introduction to Computing for the Physical Sciences
Overview of c++ Objectives 1. Understanding the use of the following elements in a c++ program variables constants assignment input output 2. Writing a.
Ma123: Fall 2002 Sections Dr. Paul Eakin:Instructor Kyle McCormick:Recitation Leader ( ) Zhiqiang.
Physics 2048: Meet the Professors Tue/Thu lectures: Prof. Wiedenhöver
Cosc 2150: Computer Organization Chapter 9, Part 3 Floating point numbers.
Today is Wednesday, September 13th, 2017
All important information will be posted on Blackboard
Computer Engineering Department Islamic University of Gaza
IST256 : Applications Programming for Information Systems
Chapter 10 Programming Fundamentals with JavaScript
ECE 1304 Introduction to Electrical and Computer Engineering
COSC 5V90 Functional Programming and Interactive Theorem Proving
Topics Designing a Program Input, Processing, and Output
MATH/COMP 340: Numerical Analysis I
Chapter 7: Expressions and Assignment Statements
Dr. Clincy Professor of CS
CMSC201 Computer Science I for Majors Lecture 04 – Expressions
Dr. Clincy Professor of CS
CSC 131: Introduction to Computer Science
Week 1 Tutorial: Foundation Mathematics for Business Statistics
Chapter 7: Expressions and Assignment Statements
Variables, Expressions, and IO
Chapter 6 Floating Point
CMSC201 Computer Science I for Majors Lecture 03 – Operators
Recent from Dr. Dan Lo regarding 12/11/17 Dept Exam
IPC144 Introduction to Programming Using C Week 2 – Lesson 1
Arithmetic Operators in C
Number and String Operations
Dr. Clincy Professor of CS
Arithmetic Operators in C
Floating-point primitive data types
CMSC201 Computer Science I for Majors Lecture 04 – Expressions
Course page: CSE/Math 1560: Introduction to Computing for Mathematics and Statistics Winter 2011 Suprakash Datta.
Topics Designing a Program Input, Processing, and Output
Topics Designing a Program Input, Processing, and Output
CS150 Introduction to Computer Science 1
Topics Designing a Program Input, Processing, and Output
Topics Designing a Program Input, Processing, and Output
Recent from Dr. Dan Lo regarding 12/11/17 Dept Exam
Primitive Types and Expressions
Presentation transcript:

Computational Thinking through Mechatronics login 5065 EECS1011

Who Am I? Dr. Burton Ma office email Lassonde 2046 office hours : Wed 2:00–4:00PM email burton@cse.yorku.ca

Course Website everything you need to know is on the course website on Moodle@York https://moodle.yorku.ca/moodle/course/view.php?id=140036 the course is supposed to be automatically added to your "My Courses" when you enroll in the course

Lectures there are 2 lecture hours per week Mon & Wed 10:30-11:30 LAS A lectures make use of iClicker http://lts.info.yorku.ca/polling-student/

Labs William Small Centre Room 106 seats 48 students there are 490 students enrolled! you must attend the lab section that you are enrolled in I cannot change your lab sections because I do not have the administrative authority to do so you need to see the Undergraduate Assistant in LAS 1012M for assistance

Labs the labs use specialized hardware for sensing and control of simple electronic and mechanical devices the hardware interfaces with a computer on which you will create a program to interact with the devices you must complete the lab work during the lab time

Programming environment the labs require Matlab

Assessment times are tentative Weight Assessment item Date 18% (9 x 2%) Labs see Calendar on Moodle 20% Lab test 1 week of Oct 15 25% Lab test 2 week of Nov 12 32.5% Exam scheduled by Registrar 4.5% (18 x 0.25%) In-class iClicker participation every lecture except today

What is MATLAB? a numerical computing environment that has its own programming language interactive: the user can enter commands and "stuff" happens visualization: rich set of plotting functionality programmable: the user can create programs that can be run within the MATLAB environment

A Quick Tour of MATLAB the equation of a non-vertical line in 2D is: plot the line on the domain -1 <= x <= 5

A Quick Tour of Matlab find the intersection of the two lines:

A Quick Tour of Matlab it looks like the intersection point is somewhere around can we find the exact intersection point?

A Quick Tour of Matlab rewrite the equations of the lines as: this system of two equations can be written in matrix form as:

A Quick Tour of Matlab elite basketball players seemingly defy gravity by hanging in the air in his prime, Michael Jordan's (MJ) vertical leap was approximately 1.2 m. Assuming g = 9.8 m/s2, MJ would have to jump vertically with an initial velocity v0 = 4.8497 m/s to achieve a maximum height of 1.2m explain why elite jumpers appear to hang in midair

A Quick Tour of Matlab from the equations of projectile motion, we know that the vertical displacement of the jumper is given by: let's plot y(t) for 0 <= t <= 1

A Quick Tour of Matlab this still doesn't really explain why the jumper seems to hang mid-air what fraction of the total time spent in the air is the jumper at a height of 1m or more? we could solve this exactly using the quadratic equation we could estimate this by counting the number of values of y where y >= 1

A Quick Tour of Matlab the field of machine learning has seen very impressive results in recent years particularly in the area of deep learning in class demo of “Deep Learning with MATLAB: Deep Learning in 11 Lines of MATLAB Code” available online at: https://www.mathworks.com/videos/deep-learning-in-11-lines-of- matlab-code-1481229977318.html

Matlab as a calculator

Real numbers most Matlab applications deal with real numbers (as opposed to integer numbers) if you type a plain number into Matlab then Matlab will interpret that number to be a real number of type double short for "double-precision floating-point"

Real numbers in MATLAB any plain number that you type into MATLAB is treated as a double; e.g., 1 -1 +2 0.001 532.03857173 you can also use the letter e or E for scientific notation scientific notation meaning value 1e2 1  102 100 1e-2 1  10-2 0.01 53e+4 53  104 530000 73.22e-3 73.22  10-3 0.07322 1e2.2 error

Arithmetic operators for numbers you can use the following arithmetic operators: operation operator example result addition + 1.1 + 2 3.1 subtraction - 7 – 5.3 1.7 multiplication * 9.1 * 4 36.4 division / pi / 2 1.5707963267949 exponentiation ^ 5 ^ 2 25

Operator precedence all operators in MATLAB follow a set of precedence rules ("order of operations") consistent with mathematics operator name precedence ( ) parentheses highest ^ exponentiation - negation *, /, \ multiplication and division +, - addition and subtraction lowest

To do make sure you have access to the Moodle course site you need a Passport York account before you can use the Moodle site https://moodle.yorku.ca/ complete LAB A includes instructions for obtaining iClicker and MATLAB must complete WHMIS 1 training