SUNY Geneseo Department of Computer Science
Cell Arrays, Day 3
Friday, April 25
CSci 120, Spring 2014
Prof. Doug Baldwin
Return to List of Lectures
Previous Lecture
Misc
Exams are graded
- Average = Median = 30 / 50
Final exam
- Friday, May 9, 12:00 noon
- Comprehensive, but emphasizing material since 2nd hour exam (e.g., cell arrays, load/save, debugging)
- Style similar to hour exams, but more questions
- Problem: you can’t all take it at the same time and use Matlab
- Option 1: Everyone gets 3 hours to do a test designed for 2, no Matlab but otherwise open computer
- Option 2: Sections get 90 minutes apiece to do a test designed for 90, open computer and Matlab
- Opinions?
SOFIs
- aka “student opinion of faculty instruction”
- Useful to me, especially any comments on how the flipped format and groups worked
- Online form via Knightweb
- Click “Surveys” button, then “SOFI survey”
Math study abroad panel
- Panel of students who have done it
- Monday, 4/28, 5:00 PM, Fraser 119
Questions?
Quiz
Example solutions
>> x = {1} % Store a cell array containing the number 1 in x
x =
[1]
>> x = (1) % Store the number 1 in x (harmless but unnecessary parentheses)
x =
1
>> x = [1] % Also store 1 in x (as a 1-by-1 matrix, same as scalar to Matlab)
x =
1
>> c = { 1 'hello' 2 }
c =
[1] 'hello' [2]
>> c{1} % Get the contents of the 1st cell in c
ans =
1
>> c(1) % Get the 1st cell in c
ans =
[1]
Cell Arrays
Comparing values in relational database application of cell arrays
strcmp
works well for strings, but not for numbers
-
==
works well for all types, as long as matrices are same size
isequal
seems to work best
Next
More cell arrays and relational databases
Handout
Next Lecture