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)
Show older comments
for j=1:length(subsample)
element=subsample(j);
0 Comments
Accepted Answer
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?
2 Comments
More Answers (0)
See Also
Categories
Find more on Whos in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!