Replacement for simset?

68 visualizzazioni (ultimi 30 giorni)
Frank
Frank il 14 Gen 2012
Commentato: Hussam il 24 Nov 2024 alle 20:35
Hi,
currently I am using simset to set the source and destination workspace. Since I wanted to know a bit more about this function I consulted the help and found this: "simset will be removed in a future version". My current code is:
myoptions = simset('SrcWorkspace','current',...
'DstWorkspace','current',...
'ReturnWorkspaceOutputs', 'on');
simOut = sim(mdlName, endTime, myoptions);
I assume there is a newer function that does the same and is maybe even better. It is very important for me to have the option to select the source workspace, either 'base' or 'current'. I couldn't find anything about alternatives in the help. So is there something similar?
Actually I was looking for an option to set a structure (or similar) as source instead of the 'base' or 'current' workspace. Constants and 'FromWorkspace' values should then be taken from the structure. Maybe the new function is able to do this?
Thanks and cheers, Frank
  1 Commento
Hussam
Hussam il 24 Nov 2024 alle 20:35
I saved a wrong account for the withdrawal in simset. Please there any chance to change it to the correct one.

Accedi per commentare.

Risposta accettata

Guy Rouleau
Guy Rouleau il 14 Gen 2012
The main reason why the 'SrcWorkspace' is not documented anymore is because it is not compatible with the parallel toolbox.
This following solution should answer your question:
In addition to that, the 'SrcWorkspace' option can also be passed through a structure of options, as document in the SIM command doc.
  1 Commento
Frank
Frank il 15 Gen 2012
Is DstWorkspace depricated as well? The dialog box of 'To Workspace' says: For command line simulation using sim command, the workspace is specified using DstWorkspace field in the option structure.

Accedi per commentare.

Più risposte (1)

Walter Roberson
Walter Roberson il 14 Gen 2012
Hmmm -- I do find that documented, but it seems to say there is no replacement, which seems somewhat odd to me. See http://www.mathworks.com/help/toolbox/sldo/rn/bs15wi2-1.html

Categorie

Scopri di più su Just for fun in Help Center e File Exchange

Prodotti

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by