Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Week 2 Exercise 3
- # This exercise is NOT TESTED WITH RTMC, but you should use this template to create
- # the plots and SUBMIT YOUR CODE TO THE SERVER. After writing your code, the pictures
- # can be plotted by pressing "Source" (the pictures will appear on the Plots tab).
- # a)
- plot(NULL, xlim = c(0,5), ylim = c(0,2.5))
- x <- seq(0,5, by=0.01)
- # b)
- d1 <- c(1,2,5,10,100)
- d2 <- c(1,1,2,1,100)
- colpal <- c("red", "black", "blue", "green", "grey")
- # c)
- fx <- df(x,d1,d2)
- lines(x, fx, d1[1], d2[1], type = "h", col=colpal)
- # d)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement