title: parsing variables from MATLAB to Linux and vice versa in a shell
body: <p>I have encountered a problem. I have to use MATLAB with linux.
  I need to parse data from MATLAB to Linux and vice versa.</p>
  
  <p>For exammple</p>
  
  <p>This all is writtein in</p>
  
  <pre><code>basic.sh
  
  this basic.sh has to be opened in MATLAB
  
   s=3     # is defined is MATLAB
  ##########################
  
  
  for (( p=1 ; p&lt;5; p++ ))     # from here starts the loop in Linux
  do                                # is a command from Linux
  echo "$p"                         # is a command from Linux
  add= $p+s                         # should calulate in linux , is a command from Linux
  add=add/5                         # should do in MATLAB 
  done     
  
  #########################
   add                              # should OUTPUT the value of add as there is no semicolumn in MATLAB 
  </code></pre>
  
  <p>Kindly suggest me a possible way for such a small example the rest I will expand it myself.</p>
  
  <p>best regards</p>