I have an array say sample{i}=['ATGCA', 'GTCGAA','TCAGCT',...] How can i access each of this element using loop?

1 view (last 30 days)
for j=1:length(subsample)
element=subsample(j);

Accepted Answer

the cyclist
the cyclist on 23 Apr 2015
sample(j)
is the jth cell.
sample{j}
is the contents of that cell. (Notice the use of parentheses vs. curly brackets.) Is that what you want?

More Answers (0)

Tags

No tags entered yet.

Community Treasure Hunt

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

Start Hunting!