eleminating first value in pair

i have some values
fn1=
{837x3 cell}
{836x3 cell}
{835x3 cell}
{834x3 cell}
;
;
{4x3 cell}
{3x3 cell}
{2x3 cell}
{1x3 cell}
inside each cell i have values like for example
fn{1,1}
'Genes' 'T0&T2' 'T2&T4' 'T4&T6'
'YAR029W' 'dd' 'dd' 'du'
'YAR062W' 'du' 'ud' 'du'
'YAR068W' 'du' 'uu' 'uu'
'YBL095W' 'du' 'ud' 'du'
'YBL111C' 'uu' 'ud' 'du'
;
;
another
fn{8,1}
'Genes' 'T0&T2' 'T2&T4' 'T3&T5'
'YBR074W' 'du' 'ud' 'uu'
'YBR096W' 'uu' 'ud' 'ud'
'YBR138C' 'du' 'ud' 'du'
'YBR235W' 'ud' 'dd' 'ud'
'YBR239C' 'dd' 'dd' 'du'
'YBR241C' 'du' 'uu' 'uu'
'YBR255W' 'dd' 'dd' 'du'
now i need to change only first row value for all combination
another matrix has first row values as
row={
'YAR029W' 'd' 'd' 'd'
'YBR074W' 'd' 'u' 'u'}
'Genes' 'T0&T2' 'T2&T4' 'T4&T6'
'YAR029W' 'd' 'd' 'd'
'YAR062W' 'du' 'ud' 'du'
'YAR068W' 'du' 'uu' 'uu'
'YBL095W' 'du' 'ud' 'du'
'YBL111C' 'uu' 'ud' 'du'
'Genes' 'T0&T2' 'T2&T4' 'T3&T5'
'YBR074W' 'd' 'u' 'u'
'YBR096W' 'uu' 'ud' 'ud'
'YBR138C' 'du' 'ud' 'du'
'YBR235W' 'ud' 'dd' 'ud'
'YBR239C' 'dd' 'dd' 'du'
'YBR241C' 'du' 'uu' 'uu'
'YBR255W' 'dd' 'dd' 'du'
please help i want to perform for all fn1 values

4 Commenti

per isakson
per isakson il 23 Ago 2012
How does this question differs from your last question, finding same gene combination?
Pat
Pat il 26 Ago 2012
it doest not differ ,i want to make a new thread ,that was complicated to read
Your thread is still complicated to read. The definition of fn1 has no valid Matlab syntax and we have to guess what you mean. Afterwards the variable fn appears without a definition. The meaning of the actual question is not clear also:
now i need to change only first row value for all combination
Change what to what, what is "the first row value" and what combinations do you mean?
fn1 is
fn1=
{837x3 cell}
{836x3 cell}
{835x3 cell}
{834x3 cell}
in each cell i have genes as stated above
i have another matrix for example(it consists of 836 rows)
rownew={
'YAR029W' 'd' 'd' 'd'
'YBR074W' 'd' 'u' 'u'}
i want to replace every first row of fn(1,1),,,fn(836,1),with rows in variable rownew and need output as stated above
please help

Risposte (0)

Questa domanda è chiusa.

Richiesto:

Pat
il 23 Ago 2012

Community Treasure Hunt

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

Start Hunting!

Translated by