Info
La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.
add colums in a cell array of strings
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hi, I have the cell array Location(1,4).locID, attached, and I want to trasform it: I want that every row have 19 colums (19 is the max value of the length of all rows). Ex Row corrisponding to Location(1,4).locID{15,1} is
'674' '719' '618' '631' '618' '631' '618' '631' '618' '674'
and I want that became
'674' '719' '618' '631' '618' '631' '618' '631' '618' '674' '' '' '' '' '' '' '' '' ''
and I want to apply this for all rows
Can you help me?
2 comentarios
Respuestas (1)
Azzi Abdelmalek
el 22 de Mzo. de 2016
Editada: Azzi Abdelmalek
el 22 de Mzo. de 2016
s={'674' '719' '618' '631' '618' '631' '618' '631' '618' '674'}
out=repmat({''},1,19)
out(1:numel(s))=s
3 comentarios
Azzi Abdelmalek
el 22 de Mzo. de 2016
Editada: Azzi Abdelmalek
el 22 de Mzo. de 2016
what is Location(1,4).locID? a cell array? the size?
La pregunta está cerrada.
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!