Class Notes (834,352)
Computing (443)
CISC 101 (29)
Lecture

# 2.docx

7 Pages
129 Views

School
Department
Computing
Course
CISC 101
Professor
David Skillicorn
Semester
Fall

Description
Class 2.1 9/18/2012 10:26:00 AM The story so far… Row vector: a 5 7 8 2 A(1:2) Column vector: b b (2:3) Matrix or array: c C(2:3, 3:4) Vectors have sizes and shapes C(:,2)means c(1:4,2) Input and output Csvread (‘filename’); Cvswrite (‘filename’, variable) Image, imagesc, spy 9/18/2012 10:26:00 AM Plot: value plot plot(a(:,1)); -plot in both directions- vertical and horizontal slices global properties of arrays sum (a) sum Other examples ** all only in the column Max - maximum Min-minimum Mean- average Median- middle number Standard deviation – avg difference between all numbers What about computing along the rows? (a) extra input to the command sum (a) = sum (a,1)< direction 1 (column) sum (a,2) < direction 2 (row) (b) transpose the array b=a’j here plot- plot one attribute against another 1 3 2 7 (2,7) (1,3) Class 2.2
More Less

Related notes for CISC 101
Me

OR

Join OneClass

Access over 10 million pages of study
documents for 1.3 million courses.

Join to view

OR

By registering, I agree to the Terms and Privacy Policies
Just a few more details

So we can recommend you notes for your school.