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)
for j=1:length(subsample)
element=subsample(j);

Respuesta aceptada

the cyclist
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
Tonmoy saha
Tonmoy saha el 23 de Abr. de 2015
thank you sir. Now it works fine. Can i ask you for one more help. i want to share some code with you if you don't mind sir.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Loops and Conditional Statements en Help Center y File Exchange.

Etiquetas

Aún no se han introducido etiquetas.

Community Treasure Hunt

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

Start Hunting!

Translated by