programming with spread sheets lecture 18: supporting material dr kathryn merrick tuesday 19 th may,...

12
Programming with Spread Sheets Lecture 18: Supporting Material Dr Kathryn Merrick Tuesday 19 th May, 2009

Upload: christine-martin

Post on 13-Dec-2015

214 views

Category:

Documents


0 download

TRANSCRIPT

Programming with Spread Sheets

Lecture 18: Supporting Material

Dr Kathryn Merrick

Tuesday 19th May, 2009

Overview

Introduction to spread sheet programming:

Variables, types, values, operators

Arrays

Built-in functions

Flow of control

Plotting

Variables, Values and Types

Operators

Arrays and Built-in Functions

Flow of Control

Revision: From Problem to Program…

1. Understand the problem ‘in English’

2. Develop a rough solution on paper

3. Implement the solution in MATLAB

4. Test your solution

A Problem…

Some Maths…

Source: http://en.wikipedia.org/wiki/Kinetic_energy http://en.wikipedia.org/wiki/Potential_energy

Gravitational potential energy

Demo 1:

Energy simulator in Excel

Summary

After today’s lecture you should be able to:

Identify the key programming tools we used in MATLAB in spread sheets

Solve a simple problem using a spread sheet