VSM control project in Matlab