mysterious reason for CAT error when defining cell array
1 次查看(过去 30 天)
显示 更早的评论
hi,
i'm trying to create a cell array that contains a bunch of filenames that i need to read later, by saying:
filenamelist = {...
'011_tempZdata_Hr3_1x_Hw100_split_5Px140W_C8Wm2_PCFW1111_U2026_dT05' ... '012_tempZdata_Hr3_1x_5Px140W_C8Wm2_PCFW1111_U1263_dT08' ... '013_tempZdata_Hr3_1x_Hw100_split_5Px140W_C8Wm2_PCFW1111_U0842_dT12' ... '081_tempZdata_Hr3_1x_Hw100_split_5Px70W_C4Wm2_PCFW1111_U1010_dT05' ... %'083_tempZdata_Hr3_1x_Hw100_split_5Px70W_C4Wm2_PCFW1111_U04081_dT12' ... '021_tempZdata_Hr3_2x_Hw100_split_5Px140W_C8Wm2_PCFW1111_U1011_dT05' ...
};
where the line that has been commented out is a filename that i don't want matlab to read for now.
unfortunately, when i try to do it, i get the following message: Error using ==> vertcat CAT arguments dimensions are not consistent.
however, when i say
a = {'a' ...
%,hlkjasdfhlisdfh ...
'bb'};
i don't get any error message whatsoever.
the following will not return an error either:
filenamelist = {...
'011_tempZdata_Hr3_1x_Hw100_split_5Px140W_C8Wm2_PCFW1111_U2026_dT05' ... '012_tempZdata_Hr3_1x_5Px140W_C8Wm2_PCFW1111_U1263_dT08' ... '013_tempZdata_Hr3_1x_Hw100_split_5Px140W_C8Wm2_PCFW1111_U0842_dT12' ... '081_tempZdata_Hr3_1x_Hw100_split_5Px70W_C4Wm2_PCFW1111_U1010_dT05' ... '021_tempZdata_Hr3_2x_Hw100_split_5Px140W_C8Wm2_PCFW1111_U1011_dT05' ...
% '083_tempZdata_Hr3_1x_Hw100_split_5Px70W_C4Wm2_PCFW1111_U04081_dT12' ...
};
What am I overlooking??!! HELP!!!
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Multidimensional Arrays 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!