getoutput - Access output from function object

Syntax

out_obj = getoutput(ff)

Description

out_obj = getoutput(ff) returns in out_obj the object that accesses the return from ff. The input argument ff must be a function object constructed either by createobj or a combination of createobj and declare. To return any value, ff must be a fully populated function object, with all the required input and output objects.

Examples

Use getoutput to see the properties of the output object in a function object:

sin_t=createobj(cc,'sin_taylor')

FUNCTION Object
  Function name     : sin_taylor
  File found        : hiltut.c
  Start address     : [12328 0]
  All variables     : a1, a2, a3, acc, x, xpow
  Input variables   : x
  Return type       : short

getoutput(sin_t)

NUMERIC Object stored in register(s): 
  Symbol name              : 
  Register                 : A4
  Datatype                 : Unknown
  Wordsize                 : 16 bits
  Register units per value : 1 ru
  Representation           : signed
  Bit padding (post)       : 16
  Size                     : [ 1 ]
  Total register units     : 1 ru
  Array ordering           : row-major

Note that you do not need the output variable name in getoutput. Because there can only be one output object (one output variable) you do not need to specify which object to display.

See Also

createobj, getinput

  


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