Displaying result in command window
12 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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
Risposta accettata
Azzi Abdelmalek
il 6 Set 2012
Modificato: Azzi Abdelmalek
il 6 Set 2012
for k=1:numel(gene)
disp(sprintf('%d=',k))
disp(gene{k})
end
%or
eval(['[a1' sprintf(',a%d',2:numel(gene)) ']=gene{:}'])
2 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Operating on Diagonal Matrices in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!