Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

making two matrices of genes the same size and same variable

1 vue (au cours des 30 derniers jours)
fereshteh izadi
fereshteh izadi le 4 Jan 2016
Clôturé : MATLAB Answer Bot le 20 Août 2021
hi,
happy new year
i have two adjacency matrices like below
> mat <- read.table("aracne.txt", header = T, sep = "\t", row.names=1)
> head(mat[,1:4])
AT1G01060 AT1G01170 AT1G01180 AT1G01260
AT1G01060 0 0 0 0
AT1G01170 0 0 0 0
AT1G01180 0 0 0 0
AT1G01260 0 0 0 0
AT1G01380 0 0 0 0
AT1G01490 0 0 0 0
> # watching the dimension of matrix
> dim(mat)
[1] 3123 3123
> Newmat <- read.table("newMat.txt", header = T, sep = "\t", row.names=1)
> head(Newmat[,1:4])
AT1G01060 AT1G01170 AT1G01180 AT1G01183
AT1G01060 0 0 0 0
AT1G01170 0 0 0 0
AT1G01180 0 0 0 0
AT1G01183 0 0 0 0
AT1G01260 0 0 0 0
AT1G01380 0 0 0 0
> # watching the dimension of matrix
> dim(Newmat)
[1] 3515 3515
how i can extract one matrix from another please, i mean i need two matrices with the same size, maybe
3123 3123 thank you for your help
  1 commentaire
Guillaume
Guillaume le 4 Jan 2016
Your example does not appear to be using matlab syntax. Is your question actually about matlab?

Réponses (0)

Cette question est clôturée.

Community Treasure Hunt

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

Start Hunting!

Translated by