필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Finding in a cell array within a cell array

조회 수: 2 (최근 30일)
Orongo
Orongo 2019년 2월 17일
마감: Stephen23 2019년 2월 17일
HI, I have made a simulation and saved each simulation in a cell array. For a Chi-square test I need to cound number of times a value appears in the simulation. In this example I have the matrix C
C = {{1, 2, 3; 11,22,33;111,222,333} {4, 5, 6; 44,55,66;444,555,666} {1, 2, 3; 11,22,33;111,222,333}};
and cell A with the values I want to count for
A=[1 2 3; 4 5 6; 7 8 9];
How can I the answers in a matrix of same dimensions as C and A with number of occurances? In my example the desired example would look like
res=[2 2 2; 0 0 0; 0 0 0]

답변 (0개)

이 질문은 마감되었습니다.

태그

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by