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

1 Ansicht (letzte 30 Tage)
for j=1:length(subsample)
element=subsample(j);

Akzeptierte Antwort

the cyclist
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
Tonmoy saha
Tonmoy saha am 23 Apr. 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.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Loops and Conditional Statements finden Sie in Help Center und File Exchange

Tags

Noch keine Tags eingegeben.

Community Treasure Hunt

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

Start Hunting!

Translated by