%% SL7
str = 'Hello, world!';
length(str)
double(str)
str(3:8)
%% SL12
sprintf('Value of pi is: %0.5f, value of 5*pi is: %0.5f', pi, 5*pi)

sprintf('This is 50%%\n\n\n')

tx = 'test_A';
sprintf('This is a measurement set: %s', tx)

%% SL23
s = 'this is a big book'
s(s ~= ' ')
s(s > ' ')
s(s > 32)

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