%-- 4/2/13  4:56 PM --%
1
addpath('~/matlab_xunit/xunit/')
assertEqual(true, true)
runtests
assertTrue(true)
assertFalse(false)
assertAlmostEqual(1, 1.00000001)
assertElementsAlmostEqual(1, 1.00000001)
squared(2)
squared(4)
assertEqual(area(10, 5), 50)
assertEqual(area(10, 6), 50)
assertEqual(area(10, 5), 50)
assertTrue(divisible(6, 3))
true
false
assertTrue(divisible(6, 3))
assertTrue(divisible(5, 3))
assertEqual(monus(4, 98798797), 0)
assertEqual(monus(4, 2), 2)
assertEqual(monus(4, 1), 2)
[1 2 3]
[1 2 3; 4 5 6]
[1 2 3; 4 5 6 7]
[1 2 4]
size([1 2 4])
x = [1 2 4]
y = [x, 5]
[]
0:[1, 2, 3]
0:1
[1, 2, 3] + 4
square_list([2, 4, 6])
assertEqual(factorial(6), 720)
[1 2 4] + 3
[1 2 4] * 3
[1 2 4] / 3
[1 2 4] - 3
[1 2 4]  ^ 2
[1 2 4] .^ 2
[1 2 4] .+ 2
[1 2 4] .* 2
[1 2 4] * 2
[1 2 4] .* [2 4 6]
[1 2 4] * [2 4 6]
[1 2 4] * [2; 4; 6]
A = [1 2 3; 6 7 8; 20 30 40]
A .^2
A
A .^ 2
A ^ 2
A(2:)
A(2:, :)
A(:, :)
A(:1, :)
A(:1)
%can't leave off just one bound in MATLAB
A(1:2)
A(1:2, :)
A(1:2, 1:2)
A
A'
any(A)
all(A)
A(1, :)
any(A(1, :))
[1 0 0; 0 1 0; 0 0 1]
Ident = [1 0 0; 0 1 0; 0 0 1]
any(Ident)
all(Ident)
diag(A)
A
