個人是想到這樣寫
u = [0 0 0 0 0 0 0 0 0 0 0 0 0 ;
0 0 0 0 0 0 0 0 0 0 0 0 0 ;
0 0 0 0 0 0 0 0 0 0 0 0 0 ;
0 0 0 0 0 0 0 0 0 0 0 0 0 ;
99 99 99 99 99 99 99 0 0 0 0 0 0 ;
0 99 99 99 99 99 0 0 0 0 0 0 0;
0 0 0 0 0 0 0 0 0 0 0 0 0 ;
0 0 0 0 0 0 0 0 0 0 0 0 0 ];
m = ones(1,size(u,1));
n = ones(1,size(u,2));
v = mat2cell(u , m , n );
y = cellfun(@(x) strrep(num2str(x),'99','T1'), v , 'UniformOutput', false );
不過感覺還有更好的寫法 = =