Info

此问题已关闭。 请重新打开它进行编辑或回答。

eleminating first value in pair

1 次查看(过去 30 天)
Pat
Pat 2012-8-23
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 个评论
Jan
Jan 2012-8-26
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?
Pat
Pat 2012-8-26
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

回答(0 个)

此问题已关闭。

标签

Community Treasure Hunt

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

Start Hunting!

Translated by