% Unit 2 (MATLAB Course @ UAM)
% (c) Alexander Knebe

%===============================
% switching the day of the week
%===============================
clear all, close all
clc

n = input('please give a number between 1 and 7: ');

switch(n)
    case 1,
        disp('Monday')
    case 2,
        disp('Tuesday')
    case 3,
        disp('Wednesday')
    case 4,
        disp('Thursday')
    case 5,
        disp('Friday')
    case 6,
        disp('Saturday')
    case 7,
        disp('Sunday')
    otherwise,
        disp('number not in allowed range')
end
