필터 지우기
필터 지우기

creating a vocab list

조회 수: 10 (최근 30일)
Mahmoud Zeydabadinezhad
Mahmoud Zeydabadinezhad 2017년 10월 28일
댓글: Mahmoud Zeydabadinezhad 2017년 10월 29일
Hi, I have a cell array (P) of size 5000x1. Each element of this cell array is another cell array of variable size which contains some words. The task is to find the words that are present in more than a certain number of elements (rows) of the array P. Thanks
  댓글 수: 1
John D'Errico
John D'Errico 2017년 10월 28일
What have you tried? If nothing, then why not? If you want help, show what you have done. Otherwise this becomes merely a doit4me.

댓글을 달려면 로그인하십시오.

채택된 답변

Walter Roberson
Walter Roberson 2017년 10월 29일
Hint: You are not told which orientation the individual cell arrays are. You need to make them all the same orientation before you can get much further.
bar = cellfun(@(C) C(:), foo, 'uniform', 0);
Then you can pull all of the contents into a single array:
vertcat(bar{:})
  댓글 수: 3
Walter Roberson
Walter Roberson 2017년 10월 29일
Notice I wrote vertcat(bar{:}) -- pay attention to brackets.
Mahmoud Zeydabadinezhad
Mahmoud Zeydabadinezhad 2017년 10월 29일
Thank you!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by