Where to Go Next. Outline Announcements: –Homework IV due Wed. 10/8 by 5, by e-mail Extra week for projects Absolutely no exceptions! Answers will be.

Slides:



Advertisements
Similar presentations
PROGRAMMING LANGUAGE (JAVA) UNIT 42 BY ROBERT BUTTERFIELD TELEPHONE Data Structures and Algorithms.
Advertisements

MATLAB – A Computational Methods By Rohit Khokher Department of Computer Science, Sharda University, Greater Noida, India MATLAB – A Computational Methods.
Linear Algebra Applications in Matlab ME 303. Special Characters and Matlab Functions.
Review for Final Exam Dilshad M. NYU. In this review Arrays Pointers Structures Java - some basic information.
MATLAB Presented By: Nathalie Tacconi Presented By: Nathalie Tacconi Originally Prepared By: Sheridan Saint-Michel Originally Prepared By: Sheridan Saint-Michel.
1cs542g-term Notes  Assignment 1 will be out later today (look on the web)
Maths for Computer Graphics
COMPSCI 125 Spring 2011 Section What is computer science? … the study of the theoretical foundations of information and computation and their implementation.
Ordinary Differential Equations. Outline Announcements: –Homework II: Solutions on web –Homework III: due Wed. by 5, by Structs Differential Equations.
COMS W1004 Introduction to Computer Science June 25, 2008.
Ordinary Differential Equations. Outline Announcements: –Homework II: Solutions on web –Homework III: due Wed. by 5, by Homework II Differential.
CSC 171 – FALL 2004 COMPUTER PROGRAMMING LECTURE 0 ADMINISTRATION.
Matlab Intro. Outline Matlab introduction Matlab elements Types Variables Matrices.
This is…. –Contains syllabus, lecture notes, examples, homework Office Hours –Tuesday & Wednesday, 3-4.
Computer Graphics (Fall 2005) COMS 4160, Lecture 2: Review of Basic Math
Where to Go Next. Outline Announcements: –Homework IV due Friday by 5, by Absolutely no exceptions! Answers will be posted on web I will be available.
Ordinary Differential Equations (ODEs)
4. Week 04.March Use of M-File Editor/Debugger: text editor, debugger; editor works with file types in addition to.m (MATLAB “m-files”)
Chapter 10 Review: Matrix Algebra
Chapter 5. Loops are common in most programming languages Plus side: Are very fast (in other languages) & easy to understand Negative side: Require a.
CS451 Computer Graphics JYH-MING LIEN DEPARTMENT OF COMPUTER SCIENCE GEORGE MASON UNIVERSITY.
Introduction to MATLAB Session 1 Prepared By: Dina El Kholy Ahmed Dalal Statistics Course – Biomedical Department -year 3.
Data, graphics, and programming in R 28.1, 30.1, Daily:10:00-12:45 & 13:45-16:30 EXCEPT WED 4 th 9:00-11:45 & 12:45-15:30 Teacher: Anna Kuparinen.
A L I MAM M OHAMMAD B IN S AUD I SLAMIC U NIVERSITY C OLLEGE OF S CIENCES D EPARTMENT OF M ATHEMATICS MATLAB 251 : MATH SOFTWARE Introduction to MATLAB.
Text Processing. Outline Announcements: –Homework I: due Today. by 5, by Discuss on Friday. –Homework II: on web HW I: question 7 Finish functions.
ME451 Kinematics and Dynamics of Machine Systems Numerical Solution of DAE IVP Newmark Method November 1, 2013 Radu Serban University of Wisconsin-Madison.
Improving perfomance Matlab’s a pig. Outline Announcements: –Homework I: Solutions on web –Homework II: on web--due Wed. Homework I Performance Issues.
CS 403: Development of Scientific Computing Programs Andrew Pershing 3134 Snee Hall
Vectors and Matrices In MATLAB a vector can be defined as row vector or as a column vector. A vector of length n can be visualized as matrix of size 1xn.
Programming for Beginners Martin Nelson Elizabeth FitzGerald Lecture 15: More-Advanced Concepts.
Chapter 4 Review: Manipulating Matrices Introduction to MATLAB 7 Engineering 161.
Co. Chapter 3 Determinants Linear Algebra. Ch03_2 Let A be an n  n matrix and c be a nonzero scalar. (a)If then |B| = …….. (b)If then |B| = …..... (c)If.
Matlab 14.html Cost: $100 Available in labs on Windows and Unix machines.
Outline Announcements –Homework I due Wed. 5PM by Subject: CIS 402 Homework 1 Plain text Not allowed to use errorbar Try to do plotCI without looking.
This is…. –Contains syllabus, lecture notes, examples, homework Office Hours –Monday & Tuesday, 11-1 in.
Figures & Axes, Printing & Saving. Outline Announcements –Homework I due Wed. 5PM by –No lecture on Fri. 10/26, rescheduled to Wed. 10/31 at 8AM.
2D Routines in 3D. Outline Announcements –HW II--due Friday. 5PM HW1 & Cookie Grids & Meshes Representing f(x,y) Lines & Surfaces in 3D Survey.
BOĞAZİÇİ UNIVERSITY DEPARTMENT OF MANAGEMENT INFORMATION SYSTEMS MATLAB AS A DATA MINING ENVIRONMENT.
Outline Announcements: –HW III due Friday! –HW II returned soon Software performance Architecture & performance Measuring performance.
MATLAB – PT1 The purpose of this workshop is to get you started and to have fun with MATLAB! Let’s talk a little and decide on what we will be covering.
Linear Systems What is the Matrix?. Outline Announcements: –Homework III: due Today. by 5, by –Ideas for Friday? Linear Systems Basics Matlab and.
CS 401: Applied Scientific Computing with MATLAB Andrew Pershing 3134 Snee Hall
A Puzzle for You. Puzzle Someone is working for you for 7 days You have a gold bar, which is segmented into 7 pieces, but they are all CONNECTED You have.
A (VERY) SHORT INTRODUCTION TO MATLAB J.A. MARR George Mason University School of Physics, Astronomy and Computational Sciences.
Matlab Programming a logical approach. Outline Announcements: –Homework I: due Wed. by 5, by –Last day to add/drop or change credit/audit Iteration.
Matlab Fundamentals: working with data.
Input Output Garbage In, Garbage Out. Outline Announcements: –Homework III: due Today. by 5, by Discuss on Friday. –Homework IV: on web, due following.
NET 222: COMMUNICATIONS AND NETWORKS FUNDAMENTALS ( NET 222: COMMUNICATIONS AND NETWORKS FUNDAMENTALS (PRACTICAL PART) Tutorial 2 : Matlab - Getting Started.
Outline Announcements: –HW I key online this afternoon –HW II due Friday –Sign up to discuss projects Debugging Testging for correctness.
Math 252: Math Modeling Eli Goldwyn Introduction to MATLAB.
Improving performance Matlab’s a pig. Outline Announcements: –Homework I: Solutions on web –Homework II: on web--due Wed. Homework I Performance Issues.
CIS 401: Applied Scientific Computing with MATLAB Andrew Pershing 3134 Snee Hall
Outline Announcements: –HW II Idue Friday! Validating Model Problem Software performance Measuring performance Improving performance.
Course Overview: Linear Algebra
“Moh’d Sami” AshhabSummer 2008University of Jordan MATLAB By (Mohammed Sami) Ashhab University of Jordan Summer 2008.
EEE 242 Computer Tools for Electrical Engineering
Eigenfaces (for Face Recognition)
Computer Application in Engineering Design
(Mohammed Sami) Ashhab
Matlab Fundamentals: working with data.
Solving Linear Systems Using Inverse Matrices
CS3901 Intermediate Programming & Data Structures Introduction
Text Processing.
Engineering Analysis (EELE 3301)
Communication and Coding Theory Lab(CS491)
Matlab Fundamentals: working with data.
Matlab Intro.
Vectors and Matrices In MATLAB a vector can be defined as row vector or as a column vector. A vector of length n can be visualized as matrix of size 1xn.
This is….
Matlab Intro.
Presentation transcript:

Where to Go Next

Outline Announcements: –Homework IV due Wed. 10/8 by 5, by Extra week for projects Absolutely no exceptions! Answers will be posted on web I will be available during office hours & by appt. –Homework III: answers on web Homework III AdvDiff1D example What you know What I haven’t told you, & where to find out more Course Evaluations

Homework Solution to 6 was harder than I thought –x=[ ] –d=diff(x)-->[ ] –d=diff(d)-->[0 -1 0] –find(d~=0)-->[1 3]! Need to do the diff and scan for n-1 0’s. –I=[] –for j=1:length(d)-n+2 if(sum(d(j+(0:n-2))) –I=[I,j]; end –end

Cookie Awards Idea is to find where diff(I)==1 Winners –Louise McGarry –Ning Zhang –Prabuddha Sengupta –Min Wu

Numerical Solution This is a matrix problem –A*C t+dt =f(C t ) Each grid point will have a row in matrix A –A(j,:)=[0 …0, -, (1+2* ), -, 0 … 0] All rows are the same except for first and last –We need to specify what happens at end points –Boundary conditions are a big problem –We’ll use periodic BC’s C(0)=C(1), so first and last rows are:

Numerical Solution Algorithm: –build A –for j=1:n build RHS=f(C t ) C t+dt =A\RHS very time consuming! –end

Numerical Solution Same A used in each iteration Factor once: –build A –[L,U]=lu(A);%chol would be better.. –for j=1:n build RHS=f(C t ) y=L\RHS; ---forward substitution C t+dt =U\y; ---back substitution –end

Sparse Matrices A is sparse –the only non-zero elements are immediately above, below, and on the diagonal –corners for periodic BC’s Matlab has special sparse matrices –much less memory (don’t need space for 0’s) –faster to process –A=sparse(I,J,S) forms A s.t. A(I(j),J(j))=S(j)

AdvDiff1D.m Uses slightly more complicated procedure for advection known as “Lax-Wendroff” method Must specify –Initial concentration C0 –parameters (u, k) –size of domain L –length of time T, –dx, dt Returns x, t, and C(x,t)

What Do You Know? You know enough Matlab to solve any of these problems DataProgramOutput Currents SSHGeostropic eq.U,V,plot Weather T,V,MFinite diff.T,V,M in future Bioinfomatics ATCGCGTA…Search for genesLocation of genes Electronics SignalFFTPlot of spectrum

What Do You Know? You know how to –get ASCII and binary data into Matlab –data are stored in arrays (vectors, matrices, ND-arrays) –Manipulate data with array operations find, relational and logical operators –get data out of Matlab

What Do You Know? You know that Matlab has built in functions for –statistics –graphics –solving ODE’s –optimization –linear algebra

Matlab has lots of functions, and you’ll never know them all –learn about functions through help, helpwin, or help browser (through GUI) What I Haven’t Told You

Other important packages –splines (turn anything into a smooth function) –signals (beyond FFT) –finance (follow the money) –mapping (explore your world) –Simulink (GUI for creating dynamical systems)

What Do You Know? You know how to extend Matlab’s capabilities through functions –function [outputs]=fname(inputs); And that Matlab is a procedural programming language –Iterations with for & while loops –Conditionals with if-elseif-else-end –error(estring) And that Matlab functions can be polymorphic –nargin, varargin, etc.

What Do You Know? Matlab is more than just arrays of doubles –structs--similar to C-structs or Java objects –cell-arrays-- arrays of anything

What Do You Know? Matlab can do graphics –plot--plots of 1D functions –bar--bar plots –surf, pcolor--plots of 2D functions with color Matlab’s graphics can be programmed –Build functions for specialized graphics

What I Haven’t Told You There are lots of graphics functions –patch, imagesc, plot3, fill, isosurface Graphics have lots of properties to play with –color, light, markers, text, size, position Matlab has a system for working with graphics –handle graphics Shameless plug for CIS 402!

Other Scientific Computing Courses CS421--Introduces basic concepts and issues in scientific computing and numerical analysis CS621, CS622, CS624--Advanced scientific computing and numerical analysis (Matrices, Optimization, ODE/PDE’s) Math and Applied Math offer courses on linear algebra, ODE/PDE’s Domain-specific courses in your department

Evaluations Please give me as much data as you can –specific lecture/topics you liked & those you didn’t –other topics to cover? –were tutorials useful? Thanks!