Actions
- 2007-01-17: get teaching materils from Russ
- 2007-01-19 Ask in the academic office about reserving CSIL in order to train everyone
- 2007-01-21: reply from TSG. Need to email about room
- 2007-01-21: get time for training session
- 1 absence: 9PM Thursday or 5PM Friday
- 2 absence: 9PM Tuesday or 5PM Thursday
- 2007-01-23: reply back from EWS about whether I got the time I wanted.
- 2007-01-23: Email heath the details about the room
- 2007-01-23: Find a good quick reference to give out to people during the training session
- 2007-01-23: Email the one student who can't attend and offer to meet with him at office hours on Friday.
- 2007-01-23: Email the newsgroup with details
- 2007-01-23: Email chuck and unreserve the room.
- 2007-01-24: make sure that I can access the EWS machines
- 2007-01-24: do a dry run of the tutorial
- 2007-01-24: print copies of the handout (25 should cover it)
- 2007-01-25: give presentation
- 2007-01-25: make more relevant to their homework assignment.
- 2007-01-26: ask Heath about making class web pages
- says to email him the html or email him a link. I think I'll make html just so everything is consistent.
- 2007-01-26: get access to the TA tools for EWS
- 2007-01-29: make web page of matlab tutorial
- 2007-01-29: email class about said tutorial
Ref
Things to cover:
% Show students the interpreter, how to get help
% this is the main window.
% any variables you create show up here.
% history shows up here.
% can drag and drop history
% press up on the command line
% emacs commands work as well
help plot
mkdir tutorial
cd tutorial
% How to create/use arrays, the ':' operator
% arrays go in brackets
row = [ 1 2 3 4 ]
column = [1; 2; 3; 4]
row + column % error, dimensions don't match
row' % ' == transpose
row'+column
mat = [11 12; 21 22; 31 32; 41 42]
mat(1,2)
row(1,3)
row(3)
row(0)
zeros(4,3)
eye(4,4)
zeros(4) % not what you expect, be careful!
zeros(4,1)
size(mat)
size(row)
length(row)
% : is the range operator
mat
mat(2:3, 1)
mat(:, 1)
mat(2:4, :)
2:6
0:3:9
5:-1:1
[5:-1:1]' % quick column
linspace(0, 1, 10)
% Arithmetic operations
2+2
exp(1)
sqrt(2)
sqrt(column)
10*exp(column)+sqrt(column)
mat
mat(:, 1)+column
row*column
mat(:, 1) .* column
column^2
column.^2
% Plotting, the hold command, labels, complex graphics
x = linspace(0, 1, 100)'
y = sqrt(x)
plot(x, y)
plot(x, y, '.')
title "Title"
title 'Title'
xlabel 'dependent'
ylabel 'independent'
axis([0 1.5 0 2])
hold on
plot(x, x.^2)
hold off
plot(x, x.^2)
% Scripting
x
x; % ; suppresses output. Always use in scripts!
% That way, you can remove ; to see intermediate products
x + ... %line continuation
x
% Functions
global n
n=4;
rob_plot(@sqrt, 0, 1, '.')
hold on
n=32;
rob_plot(@sqrt, 0, 1, 'o')
hold off
12 people attending
https://www-s.ews.uiuc.edu/ews-s/classreq/index.cgi
0220 SC
(https://agora.cs.uiuc.edu/display/CSIL/Facilities#Facilities-0220) is
available at 7pm on Monday, Tuesday and Friday and has 20 student
stations. It has a projector and also has a system that allows the
instructor station to be mirrored to students systems. It's documented
at the above link. If you want to use 0220, let me know what dates you
want it reserved for.
If you need a bigger room or a different night you would need to reserve
an EWS lab. The link to do that is http://www.ews.uiuc.edu/ews/resrv/.
-Chuck
Things I would like to cover in the training session