title: Use linmod in a function scope
body: <p>I'm writing a function that uses <code>linmod</code> but I get many undefined variables errors. Those variables are defined in the function scope but I guess <code>linmod</code> wants them in the global workspace. In <code>sim</code> you can set the <code>SrcWorkspace</code> to <code>current</code> and use it in a function scope. Is there something similar for <code>linmod</code>?</p>