Skip to content

Latest commit

 

History

History
12 lines (10 loc) · 279 Bytes

demo.md

File metadata and controls

12 lines (10 loc) · 279 Bytes

Here is a nice plot:

require(stats)
D = 150
T = 10
t = seq(0, 80, 0.01)
x = -D*exp(-(t/T))+D
v = (D/T)*exp(-(t/T))
plot(t, x, type="l", main="position through time", xlab="time (s)", ylab="position (m)", xlim=c(0,80), ylim=c(0, D+10),  xaxs = "i", yaxs = "i")