Department of Computer Science and Engineering
CS 30: Introduction To Computational Science and Engineering
Spring
2017
Course Information
Course Overview and Syllabus
Lecture review material
Smelter Example to show Matrix Calculations
Sample Matlab script files to demonstrate control structures.
list_chars.m
unique_chars.m
count_chars.m
Buggy
function
from textbook for swapping the values of 2 variables
Here is my series of Matlab functions that lead to a correct solution:
swap2.m
swaps values inside function, but the original variables are unchanged
swap3.m
shows how a function can use "evalin" to operate in another workspace
swap4.m
and swap5.m mis-use "asignin" to make assignments in another workspace
swap7.m
actually works correctly, by applying "asignin" to the original variables
Adventure Game
Data file
and
Workspace
The Matlab function
nextroom.m
interprets the meaning of destinations > 300
California Earthquake Time Series Data:
with locations
,
without locations
Sample Midterm Tests (closed book)
Spring '09
Spring '10
Sample Final Exams
Spring '09 Final
(take-home, program-writing required)
Spring '10 Final:
Instructions/preparation
Exam
(closed book)