clear; clc;

x = input('Enter a number? ', 's');
w = str2num(x);
if isempty(w)
    disp([x, ' is not a number.']);
else
    if w >= 0
        sqrt(w)
    else
        disp([x, ' is negative.']);
    end
end