Hi @Tamas
Can you possibly find out the formula or relationship between the Throttle_position and the Torque_command?
If you don't have that, then try:
kp = 1; % Proportional Gain
Torque_command = - kp*Throttle_position;
The Proportional Gain
should be a positive value that you can mathematically calculate it (if you understand the physics) or tune it according to some objectives (if you don't know what value to put in).
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1136660/image.png)