Keep strings seperated in array
Info
Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.
Ältere Kommentare anzeigen
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 Kommentare
madhan ravi
am 18 Nov. 2020
Unclear
Nathalie Borst
am 19 Nov. 2020
Bearbeitet: Nathalie Borst
am 19 Nov. 2020
Antworten (1)
s = struct('abc', {'def', 'ghi', 'jkl'})
charVec = [s.abc]
cellVec = {s.abc}
1 Kommentar
Nathalie Borst
am 19 Nov. 2020
Diese Frage ist geschlossen.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!