This is a Matlab code for simulating the response of longitudinal dynamics of a 4-WD tractor. The control system is a state-feedback control based on Linear Quadratic Control with Kalman state observer. Published as a conference paper (https://iopscience.iop.org/article/10.1088/1755-1315/355/1/012102/meta)