Keep strings seperated in array
Información
La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.
Mostrar comentarios más antiguos
So I have a structure with three types of conditions 'dcol', 'dsym' & 'c'
I want to filter through the structure per condition using indexing however this doesn't work:
c = [participant.condition]
gives: 'dcolcdsymdcoldcoldsymdcolcdsymdsymdcoldcolcdcol' > I want them to be seperated per condition
RT = [participant.RT]
i = c == 'c' > logical array out of bound cause it takes every character rather than every string
2 comentarios
madhan ravi
el 18 de Nov. de 2020
Unclear
Nathalie Borst
el 19 de Nov. de 2020
Editada: Nathalie Borst
el 19 de Nov. de 2020
Respuestas (1)
s = struct('abc', {'def', 'ghi', 'jkl'})
charVec = [s.abc]
cellVec = {s.abc}
1 comentario
Nathalie Borst
el 19 de Nov. de 2020
La pregunta está cerrada.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!