Better type checking (correct length and real).  Guard against bad simulink controllers passing in silly values.
Better type checking (correct length and real).  Guard against bad simulink controllers passing in silly values.

yasha0b1/robotics-toolbox-matlab,yasha0b1/robotics-toolbox-matlab,jaejunlee0538/robotics-toolbox-matlab,konradb3/robotics-toolbox-matlab,jaejunlee0538/robotics-toolbox-matlab,yasha0b1/robotics-toolbox-matlab,konradb3/robotics-toolbox-matlab,konradb3/robotics-toolbox-matlab,konradb3/robotics-toolbox-matlab,yasha0b1/robotics-toolbox-matlab,jaejunlee0538/robotics-toolbox-matlab,jaejunlee0538/robotics-toolbox-matlab,jaejunlee0538/robotics-toolbox-matlab,konradb3/robotics-toolbox-matlab,yasha0b1/robotics-toolbox-matlab