I have an array say sample{i}=['ATGCA', 'GTCGAA','TCAGCT',...] How can i access each of this element using loop?
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Tonmoy saha
am 23 Apr. 2015
Kommentiert: Image Analyst
am 8 Mai 2015
for j=1:length(subsample)
element=subsample(j);
0 Kommentare
Akzeptierte Antwort
the cyclist
am 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 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Loops and Conditional Statements finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!