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!