Add (env collection object)

Add new xPC Target™ environment collection object

Syntax

MATLAB® command line

env_collection_object.Add

Description

Method of xpctarget.targets objects. Add creates an xPC Target environment collection object on the host PC.

Examples

Add a new xPC Target environment collection object to the system. Assume that tgs represents the environment collection object.

tgs=xpctarget.targets;
get(tgs)
        CCompiler: 'VisualC'
     CompilerPath: 'd:\applications\Microsoft Visual Studio'
    DefaultTarget: [1x1 xpctarget.env]
       NumTargets: 1 
tgs.Add
ans =
xpctarget.env
get(tgs)
        CCompiler: 'VisualC'
     CompilerPath: 'c:\Microsoft Visual Studio'
    DefaultTarget: [1x1 xpctarget.env]
       NumTargets: 2

See Also

xPC Target methods for the xPC Target environment object method xpctarget.targets, set (env collection object), get (env collection object)

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS