nt = 1;
ss = '{';
S=[];


for t = 1:nt

maxf = 10;

s = randperm(maxf+1)-1;



S = [S s];
for i = 1:length(s)
   if i < length(s) || t < nt
    ss = [ss  num2str(s(i)) ' ,'];
   else
    ss = [ss num2str(s(i)) '};'];
   end
end

end

stairs(S)
disp(ss)