Department of Computer Science
CPS118 Introductory Programming for Scientists
Term Test #2
- Fall 2008
October 17, 2008 4:30 p.m. - Duration: 50 minutes
Family Name: _ Given Name: _
Student #: _ Section number: _
Your Ryerson email: [email protected]
SCI 180 Time-Management Assignment F2015
Complete the weekly schedule included with this document (next page), as described in the video. The
times in the left-hand column are start timese.g., the row marked 0500 starts at 5:00 a.m. and ends
at 5:59 a.m.s
and Functions Files
CPS118 Lesson #9 User-Defined Functions and Function Files
What are functions?
A function is like a command that you create
yourself. It can behave like a command already
defined in MATLAB.
CPS118 Lesson #8 Programming in MATLAB
Programming, as we know already, is writing execution
commands (instructions or statements) one after the
other. Known as scripts or programs, those sets of
CPS118 Lesson #7 Two-Dimensional Plots
Let's create a vector v1.
> x = [0:0.04*pi:10];
> y = sin(x);
You can plot the value against the index (1,2,3.).
> plot (y);
Or you can plot against another v
Using Script Files and
CPS118 Lesson #6 Using Script Files and Managing Data
How to program in MATLAB
1. To create a new program, use the Script option under the
New menu or enter the edit command in the command
CPS118 Lesson #1 Introduction and History
Computer science or computing
science (abbreviated CS or
CompSci) is the scientific and
practical approach to
computation and its
Operations with Arrays
CPS118 Lesson #5 Mathematical Operations with Arrays
Addition and Subtraction
Use + to add two arrays or to add a scalar to an
Use to subtract one array from another or to
subtract a scalar f
CPS118 Lesson #4 Creating Arrays
An array is MATLAB's basic data
Can have any number of dimensions. Most
vector - one dimension (a single row or column)
matrix - two or more dimensions
Starting with MATLAB
CPS118 Lesson #3 Starting with MATLAB
What Is MATLAB?
MATLAB is both a powerful computational
environment and a programming language
that easily handles matrix and complex
It is a large software package
Computer Systems and
CPS118 Lesson #2 Computer Systems and Program Development
Computers are electronic systems that can
transmit, store, and manipulate information (data).
Data can be numeric, chara
LECTURE 2 Contd
Six principles of critical thinking
3. can the claim be disproven?
4. possible to duplicate scientific findings?
5. is the evidence as convincing as the claims?
6. Occams Razor does a simpler explanation fit the data equally well?
PSY105 Psychophysics & Illusions
-the study of how physical stimuli are translated into psychological experience
Sensation & Perception: The Distinction
-Sensation: detection of physical energy by the sense organs
-the process o