Problem with cellfun/anonymous function

조회 수: 5 (최근 30일)
Ben
Ben 2014년 7월 6일
댓글: Ben 2014년 7월 7일
Thanks to per isakson, I was able to search through one cell array of structs. However, when trying to then search another data structure with the same structure, I get the error shown in the screenshot. What's going wrong?
  댓글 수: 2
Ben
Ben 2014년 7월 7일
I found that for some reason, when the parameter 'sas2' gets passed in to the anonymous function, it gets passed as a 0x0 double. When I hover over 'restaurants' in the problem line, it shows it as a 1x6000 cell array of structs. I don't know why the parameter is being passed incorrectly.

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Structures에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by