Programming with Spread Sheets Lecture 18: Supporting Material Dr Kathryn Merrick Tuesday 19 th 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: 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