% These are the commands from today, but not the diary. %-- 9/15/16, 2:53 PM --% a = [1, 3, 0, 5, 2]; b = 1, -3, 0, 5, -2]; b = [1, -3, 0, 5, -2]; a -b a - b sum(a-b) a c b c = [1 , -3, 0, 5, 8]; a - c sum(a - c) a c abs(a-c) sum(abs(a-c)) plot(a) title('example plot') xlabel('time'); ylabel('count'); subplot(2,1,1); plot(a) subplot(2,1,2); plot(b) s = sin(2*pi*(1:180)); c = cos(2*pi*(1:180)); subplot(2,1,1); plot(s) s = sin(2*pi*(1:180)/180); c = cos(2*pi*(1:180)/180); plot(s) plot(c) plot(s) subplot(2,1,2); plot(c) x = s.' * c; whos figure(); plot(x) figure(); imshow(x) m = zero(4,4) m = zeros(4,4) n = ones(4,4) fix(3.2) fix(-3.2) floor(3.2) floor(-3.2) clc edit add2sortedlist.m pwd cd /Users/mweeks/matlab_work/ edit add2sortedlist.m add2sortedlist add2sortedlist([1,2,3],3) add2sortedlist add2sortedlist([1,2,3],3) add2sortedlist add2sortedlist([1,2,3],3) type add2sortedlist.m