mysterious reason for CAT error when defining cell array

1 view (last 30 days)
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!!!

Accepted Answer

Walter Roberson
Walter Roberson on 15 Jul 2011
  1 Comment
Maria Alejandra Menchaca Brandan
Thanks a lot!
You have no idea how much time we spent trying to figure that one out.
Yes, the solution of getting rid of the '...' is the most suitable for me.

Sign in to comment.

More Answers (0)

Categories

Find more on Multidimensional Arrays in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!