Keep strings seperated in array
정보
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
이전 댓글 표시
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
madhan ravi
2020년 11월 18일
Unclear
Nathalie Borst
2020년 11월 19일
편집: Nathalie Borst
2020년 11월 19일
답변 (1개)
s = struct('abc', {'def', 'ghi', 'jkl'})
charVec = [s.abc]
cellVec = {s.abc}
댓글 수: 1
Nathalie Borst
2020년 11월 19일
이 질문은 마감되었습니다.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!