%% SL11:
sprintf('Hodnota pi je: %0.5f, hodnota 5*pi je: %0.5f', pi, 5*pi)

sprintf('Toto je 50%%\n\n\n')

tx = 'test_A';
sprintf('Toto je sada mìøení: %s', tx)

%% SL22:
s = 'toto je velka kniha'

s(s == ' ') = ''

%% SL23:
clear; clc;
sen    = 'This-sentence-is-for-testing-purposes-only.';
remain = sen;
word   = 1;
while true
    [token, remain] = strtok(remain, '-');
    fprintf('%2.0f. word is: %s\n', word, token);
    word            = word + 1;
    if isempty(remain)
        break;
    end
end
fprintf('The string ''is'' is used %2.0fx.\n', length(strfind(sen, 'is')));

%% SL37 (Example1):
st = 'how are you?';
length(strfind(st, ' '))

st = 'MATLAB is CaSe sEnSiTiVe!!!';
st = lower(st)
length(st)

