a
matrix(c(7,89,9,9,4,2),nrow=2,ncol=3)
t(a)
v<-1:5
dim(v)
dim(t(v))
a[1,3]
a[,2]
a[1,]
----------
a<-matrix(seq(1,21,1),nrow=7)
a[c(2,5),]
---
diag(5)
---
a*2
-
a**2
a+b
---
dim(b)[1]
--nrow(b)
ncol(b)
---
all(a==B)
--
B[4,1] <-100
----
a==b
matrix(c(7,89,9,9,4,2),nrow=2,ncol=3)
t(a)
v<-1:5
dim(v)
dim(t(v))
a[1,3]
a[,2]
a[1,]
----------
a<-matrix(seq(1,21,1),nrow=7)
a[c(2,5),]
---
diag(5)
---
a*2
-
a**2
a+b
---
dim(b)[1]
--nrow(b)
ncol(b)
---
all(a==B)
--
B[4,1] <-100
----
a==b
No comments:
Post a Comment
Note: only a member of this blog may post a comment.