Skip to content

Instantly share code, notes, and snippets.

@wleepang
Created February 9, 2013 04:30
Step change setpoint profile for PID control simulation
SP = rep(10, length(tt))
SP[which(tt >= 30)] = 5
SP[which(tt >= 60)] = 20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment