MATLAB: How to merge two strings

merge strings

I would like to load multiple files in a loop. Is it possible to merge strings as follows:
subjects=cell(19,1);
subjects{1}='s1';
subjects{2}='s2';
subjects{3}='s3';
subjects{4}='s4';
...
file_end='_stimulus1.mat';
I would need to merge subjects{i} and file_end to get:
data = load('s1_stimulus1.mat')
...
Thanks already in advance!
-Maria

Best Answer

One way:
for k1 = 1:size(subjects,2)
fname = [subjects{k1} file_end]
load(fname)
end