Displaying result in command window

12 ビュー (過去 30 日間)
Pat
Pat 2012 年 9 月 6 日
i gave gene{:} i got result as
ans =
'YPL245W' 'dd' 'du'
'YOL083W' 'uu' 'dd'
'YOL107W' 'uu' 'uu'
'YOR131C' 'uu' 'dd'
ans =
'YPL245W' 'dd' 'dd'
'YOL083W' 'uu' 'uu'
'YOL107W' 'uu' 'ud'
'YOR131C' 'uu' 'ud'
instead of ans can i get answer as
1=
'YPL245W' 'dd' 'du'
'YOL083W' 'uu' 'dd'
'YOL107W' 'uu' 'uu'
'YOR131C' 'uu' 'dd'
2=
'YPL245W' 'dd' 'dd'
'YOL083W' 'uu' 'uu'
'YOL107W' 'uu' 'ud'
'YOR131C' 'uu' 'ud'
please help
  1 件のコメント
Oleg Komarov
Oleg Komarov 2012 年 9 月 6 日
No straightforward way to do that.

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

採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2012 年 9 月 6 日
編集済み: Azzi Abdelmalek 2012 年 9 月 6 日
for k=1:numel(gene)
disp(sprintf('%d=',k))
disp(gene{k})
end
%or
eval(['[a1' sprintf(',a%d',2:numel(gene)) ']=gene{:}'])
  2 件のコメント
Pat
Pat 2012 年 9 月 6 日
Azzi but it is not working for more than two for example
gene =
{4x3 cell}
{3x3 cell}
{3x3 cell}
i have nearly 800 bales like this ,please help
Azzi Abdelmalek
Azzi Abdelmalek 2012 年 9 月 6 日
check the updated code

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeOperating on Diagonal Matrices についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by