或
for loop索引的情况下完成此操作吗? 一个人可以使用-deal或类似吗?
注:如果您不知道解决方案,请保留“最佳实践”暗示或类似的“手挥手”。
您可以使用cell2mat
::
cell2mat(phone_record)
1x2结构阵列带有字段:
名 电话
Well,
确实使用结肠操作员,并将给出与Cell2Mat(Phone_record)的结果。 其他非颜色解决方案是
phone_book = cat( 2, phone_record{ :})
cellfun(@(x) x, phone_record).'