Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

making two matrices of genes the same size and same variable

1 Ansicht (letzte 30 Tage)
fereshteh izadi
fereshteh izadi am 4 Jan. 2016
Geschlossen: MATLAB Answer Bot am 20 Aug. 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 Kommentar
Guillaume
Guillaume am 4 Jan. 2016
Your example does not appear to be using matlab syntax. Is your question actually about matlab?

Antworten (0)

Diese Frage ist geschlossen.

Community Treasure Hunt

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

Start Hunting!

Translated by