"Phil Goddard" <email@example.com> wrote in message <firstname.lastname@example.org>... > Note that although functions are the right way to do this, Simulink will be default look for its data in the MATLAB base workspace not the function from which the model is being called. > > To overcome this you need to understand the SrcWorkspace and DstWorkspace options. > > Search the doc for either of those terms for more info on how to use them. > > Phil.
SrcWorkspace and DstWorkspace were deprecated as of R2009b. But the doc page for 2012b (http://www.mathworks.com/help/simulink/slref/sim.html) indicates that SrcWorkspace is still valid (and doesn't say it's deprecated), but also does not show DstWorkspace as a valid parameter. But at least one other doc page does talk about using DstWorkspace, so it's not clear if it's still supported. Any idea if Dst/SrcWorkspace are still deprecated or even implemented or did TMW change their mind about that?