function use_semicolons
%function use_semicolons
%
% A function doesn't have to have input or output variables.
% Though usually without those it isn't very useful.
% Author: Lina Arbach <lina@lina-arbach.com>
% Just remember, when calling a function without variables,
% DO NOT append the parenthesis.
%
% DO: >> use_semicolons;
% DO NOT: >> use_semicolons();
%
% Appending a semicolon to a line will prevent MATLAB from
% printing the value of the variable.
%
x = [1 2 3]; % This will not print out x
y = [4 5 6] % MATLAB *will* print the value of y
% This next variable is quite large for a standard *variable*, but
% it is actually quite small for an image. Notice how long it takes
% to print out all of the values. Now imagine if this was a 512x512 image.
big_variable_small_image = ones(256, 256)
%Sometimes you might want to print out a small section of the image
% to try and figure out what is going on. You can do this using the
% MATLAB slice notation
big_variable_small_image(1:10, 1:10)