%-- 8/29/2014 1:37 PM --%
sin(pi)
sin(pi/2)
exp(0)
sin(pi/4)
sqrt(2)
a = 2;
b = [1, 2, 3]
b = [1, 2, 3];
c = [1; 2; 3];
c = [1; 2; 3]
size(a)
size(b)
b
size(c)
d = [1, 2, 3; 4, 5, 6]
size(d)
help size
x = -1.5:0.01:1.5;
x = -1.5:0.5:1.5
size(x)
a
a + 1
x + 1
b
b+1
b
c
b+c
x
y = x^2
y = x.^2
b
c
c = [4, 8, 10]
plot(b,c)
plot(b,c,'or')
help plot
plot(c,b,'or')
Xsquared(2)
b
Xsquared(b)
Xsquared(3)
Xsquared([1 3 4])
ones(2)
ones(2,3)
zeros(2)
zeros(2,3)
2*ones(2)
b
b(1)
b(2)
rand(3)
a = rand(3)
a(1,1)
a(1,:)
a(:,1)
