Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

making two matrices of genes the same size and same variable

조회 수: 1 (최근 30일)
fereshteh izadi
fereshteh izadi 2016년 1월 4일
마감: MATLAB Answer Bot 2021년 8월 20일
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
Guillaume
Guillaume 2016년 1월 4일
Your example does not appear to be using matlab syntax. Is your question actually about matlab?

답변 (0개)

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by