title: Using linearize method in app designer standalone app
body: <p>I'm using the linearize method to linearize a simulink model in in my matlab script. It works when i run it in the app designer. </p>
  
  <p>But after creating a standalone desktop app it doesnt work.</p>
  
  <p>I want to get the transfer function from my simulink model. The model is too complex to create it in the script.</p>
  
  <pre><code>linsys = linearize('simulinkSys',io); %get state space model from simulink
  
  A=linsys.A; B=linsys.B; C=linsys.C; D=linsys.D;
  [GmassSystemNum,GmassSystemDen] = ss2tf(A,B,C,D); %convert to transfer function
  </code></pre>