User`s guide
2 Targets and Scopes in the MATLAB
®
Interface
Signals are not target object properties. To get the value of the Integ rator1
signal from the model xp cosc ,
• In the MATLAB window, type
outputvalue = getsignal (tg,0)
where 0 is the signal index.
• Alternatively, you can type
tg.getsignal(0)
Note Method names a re case sensitive. You must type the entire name.
Property names are not case sensitive. You do not need to type the entire
name as long as the characters you do type are unique for the property.
Using the Method Syntax with Target Objects
Use the method syntax to run a target object method. The syntax
method_name(target_object, argument_list) can be replaced w ith
target_object.method_name(argument_list)
Unlike properties, for which partial but unambiguous names are permitted,
you must enter method names in full, and in lowercase. F or example, to add a
scope of type
target with a scope index of 1,
• In the MATLAB window, type
tg.addscope('target',1)
• Alternatively, you can type
addscope(tg, 'target', 1)
2-6