在matlab中迭代元胞数组的元素

iterate the elements of cell array in matlab

我从函数 textscan 得到了这个元胞数组

r =

{139952x1 cell}

当您在命令 window 中键入 r{1} 时,您会得到类似

的内容

我的问题是,如何到达此元胞数组中的单个元素,例如第四个元素?

Here is how to access parts of cells 基本上你应该这样做:

r{1}(i)

其中 i 是指定的单个元素