title: run matlab and pass integer parameter from command line
body: <p>I have a matlab function and I was able to run it from command line. Now I want to pass a parameter to the file from command line. The parameter is a integer. It seems when I pass from command line, it is always taken as a "char". </p>
  
  <p>Here is how I run the command</p>
  
  <p>matlab -nodesktop -nosplash -r "mycommand 3"</p>
  
  <p>For example, if I have a function as</p>
  
  <pre><code>function [ ] = mycommand( a )
  a = a+3;
  disp(a)
  end
  </code></pre>
  
  <p>it prints 54 instead of 6. </p>
  
  <p>Is there a way to work around this? I don't want to check the type of the variable in my code. </p>
  
  <p>Thanks</p>