% Subject 2  Practical 2b : sub2p2b.m
a=10;            % 2.5 to 2.9 and 2.11
b=int8(10);
c=pi;
d=single(10);
whos a b c d
format short
disp(a);disp(b);disp(c);disp(d);
format long
disp(a);disp(b);disp(c);disp(d);
clear
format hex
try
disp(c);
catch
 fprintf('Variable c does not exist; recreating it\n');
end
a=10;            
b=int8(10);
c=pi;
d=single(10);
disp(a);
disp(b);
disp(c);
