More MATLAB Trouble

      pwmInt = atof(value);

What? Perhaps you need to try
int pwmFloat = some nonsense.