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

1 回表示 (過去 30 日間)
for j=1:length(subsample)
element=subsample(j);

採用された回答

the cyclist
the cyclist 2015 年 4 月 23 日
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 件のコメント
Tonmoy saha
Tonmoy saha 2015 年 4 月 23 日
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.
Image Analyst
Image Analyst 2015 年 5 月 8 日
Go ahead, Attach it here.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLoops and Conditional Statements についてさらに検索

タグ

タグが未入力です。

Community Treasure Hunt

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

Start Hunting!

Translated by