t <- seq(0,100,0.1)
# pos det, neg trace, pos D
A <- matrix(c(-0.1,-0.1,-0.2,-0.3),2,byrow=T);x0 <-c(10,5)
sta.plot(A,x0,t)
# pos det, neg trace, pos D
A <- matrix(c(-0.1,-0.1,-0.2,-0.3),2,byrow=T);x0 <-c(10,5)
t <- seq(0,10,0.1)
phase.plot(A,x0,t,long=12)
x <- list()
#pos det, neg trace
det <- seq(0,1,0.5);Tr <- seq(-3,0,0.001)
x[[1]] <- root.locus.quad(det,Tr)
# pos det, pos trace
det <- seq(0,1,0.5);Tr <- seq(0,3,0.001)
x[[3]] <- root.locus.quad(det,Tr)
#neg det, neg trace
det <- seq(-1,0,0.5);Tr <- seq(-3,0,0.001)
x[[2]] <- root.locus.quad(det,Tr)
#neg det, pos trace
det <- seq(-1,0,0.5);Tr <- seq(0,3,0.001)
x[[4]] <- root.locus.quad(det,Tr)
mat <- matrix(1:4,2,2,byrow=T)
nf <- layout(mat, widths=rep(7/2,2), heights=rep(7/2,2), TRUE)
par(mar=c(4,4,1,.5),xaxs="i",yaxs="i")
for(i in 1:4) D.plot(x[[i]],i)
mat <- matrix(1:4,2,2,byrow=T)
nf <- layout(mat, widths=rep(7/2,2), heights=rep(7/2,2), TRUE)
par(mar=c(4,4,1,.5),xaxs="r",yaxs="r")
j=1
ReIm.plot(x[[j]],j,1)
ReIm.plot(x[[j]],j,2)
j=3
ReIm.plot(x[[j]],j,1)
ReIm.plot(x[[j]],j,2)
j=2
ReIm.plot(x[[j]],j,1)
ReIm.plot(x[[j]],j,2)
j=4
ReIm.plot(x[[j]],j,1)
ReIm.plot(x[[j]],j,2)
Run the code above in your browser using DataLab