A feedforward compensation scheme for perfect decoupling of measurable input functions