mysterious reason for CAT error when defining cell array

1 visualización (últimos 30 días)
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!!!

Respuesta aceptada

Walter Roberson
Walter Roberson el 15 de Jul. de 2011
  1 comentario
Maria Alejandra Menchaca Brandan
Maria Alejandra Menchaca Brandan el 15 de Jul. de 2011
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.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Multidimensional Arrays en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by