Sabir Moglad
Sabir Moglad

Reputation: 889

iterate the elements of cell array in matlab

I got this cell array resulted from the function textscan

r =

{139952x1 cell}

and when you type r{1} in the command window, you get something like

my question is, how to reach an individual element in this cell array, the fourth element for example ?

Upvotes: 2

Views: 131

Answers (1)

madbitloman
madbitloman

Reputation: 826

Here is how to access parts of cells Basically you should do:

r{1}(i)

where i is a specified individual element

Upvotes: 1

Related Questions