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