MATLAB BUILDER JA 2 User's Guide Page 271

  • Download
  • Add to my manuals
  • Print
  • Page
    / 292
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 270
Programming Interfaces Generated by Java Builder
Typically you use the standard interface when you want to call MATLAB
functions that return a single array. In other cases you probably need to
use the mlx interface.
Standard API
The standard calling interface returns an array of one or more MWArray
objects.
The standard API for a generic function with none, one, more than one, or a
variable number of arguments, is shown in the following table.
Arguments API to Use
Generic
MATLAB
function
function [Out1, Out2, ..., varargout] =
foo(In1, In2, ..., InN, varargin)
API if there
are no input
arguments
public Object[] foo(
int numArgsOut
)
API if there
is one input
argument
public Object[] foo(
int numArgsOut,
Object In1
)
API if there
are two
to
N input
arguments
public Object[] foo(
int numArgsOut,
Object In1,
Object In2,
...
Object
InN
)
API if there
are optional
arguments,
represented
public Object[] foo(
int numArgsOut,
Object in1,
6-15
Page view 270
1 2 ... 266 267 268 269 270 271 272 273 274 275 276 ... 291 292

Comments to this Manuals

No comments