Creating a char matrix
Mostrar comentarios más antiguos
I need to build a char matrix, for example:
A = [31T 31T 31T ...] Of dimensions 1514443x1 full of '31T'.
I would write: for i=1:1514443; A(i,1)='31T'; end
But I get the mistake: Assignment has more non-singleton rhs dimensions than non-singleton subscripts
I don't know what to do. Please help me.
Respuesta aceptada
Más respuestas (1)
Azzi Abdelmalek
el 11 de Feb. de 2013
s='31T'
out=repmat(s,1514443,1)
1 comentario
chaos4u2
el 11 de Feb. de 2013
Categorías
Más información sobre Resizing and Reshaping Matrices 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!