[1 2; 3 4] .\ [2 4; 6 8]
x = 0:60:360; plot(x, sind(x))
% Square
plot([0, 0], [1, 1], 'r')
plot([0, 1], [0, 1], 'r')
plot([0, 0, 1, 1], [0, 1, 1, 0], 'r')
plot([0, 0, 1, 1, 0], [0, 1, 1, 0, 0], 'r')
% Circle
plot(sind(0:360), sind(0:360), '.')
plot(sind(0:360), cosd(0:360), '.')
plot(-1:0.01:1, sqrt(1 - (-1:0.01:1).^2), '.')
% Sin
plot(0:10:1800, sind(0:10:1800), '--')
plot(0:90:1800, sind(0:90:1800), '--')
plot(0:180:1800, sind(0:180:1800), '--')
x = 0:1800; plot3(sind(x), cosd(x), x)
% Pyramid
surf([0 0 0; 0 1 0; 0 0 0])
surf([0 1 0; 0 1 0; 0 1 0])
surf([0 0 0; 1 1 1; 0 0 0])
% Plane
surf([0 1; 0 1], [0 0; 1 1], [1 1; 1 1])
surf([0 1; 0 1], [0 1; 1 1], [1 1; 1 1])
surf([0 1; 0 1], [1 0; 1 1], [1 1; 1 1])
% Grid
x = repmat([1 2 3], [3 1]); y = repmat([1 2 3]', [1 3]);
surf(x + 2 * y)
x = repmat([1 2 3]', [1 3]); y = repmat([1 2 3], [3 1]);
surf(x + 2 * y)
% Bowl
x = repmat(-2:2, [5 1]); y = x';
surf(x, y, x .^ 2 + y .^ 2)
[x, y] = meshgrid(-2:0.1:2, -2:0.1:2);
surf(x, y, x .^ 2 + y .^ 2)
surf(x, y, x ^ 2 + y ^ 2)
surf(x, y, x' * x + y' * y)
