I have an array say sample{i}=['ATGCA', 'GTCGAA','TCAGCT',...] How can i access each of this element using loop?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Tonmoy saha
el 23 de Abr. de 2015
Comentada: Image Analyst
el 8 de Mayo de 2015
for j=1:length(subsample)
element=subsample(j);
0 comentarios
Respuesta aceptada
the cyclist
el 23 de Abr. de 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 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Loops and Conditional Statements en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!