Why the exact same command (xlswrite) work with some varible but not others of the same kind?
Mostrar comentarios más antiguos
As in title, when using
xlswrite('Max.xls',[Max1; Max2; Max3; Max4; Max5; Max6; Max7; Max8; Max9; Max10])
everything's fine. a Max.xls is generated. BUT, when using
xlswrite('min.xls',[min1; min2; min3; min4; min5; min6; min7; min8; min9; min10])
an "Error using vertcat CAT arguments dimensions are not consistent." pops up..
Max1-10 and min1-10 are both texts.
Can anyone explain this? Doesn't really make sense to me..
Thank you !
1 comentario
Image Analyst
el 7 de Sept. de 2012
It has nothing to do with xlswrite, but has to do with the concatenation with the brackets.
Respuesta aceptada
Más respuestas (1)
Azzi Abdelmalek
el 7 de Sept. de 2012
Editada: Azzi Abdelmalek
el 7 de Sept. de 2012
because your min strings are not same length
char(min1,min2,min3)
or
strvcat(min1,min2,min3)
1 comentario
Yang
el 7 de Sept. de 2012
Categorías
Más información sobre Spreadsheets en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!