Method ao/compute
COMPUTE performs the given operations on the input AOs.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
DESCRIPTION: COMPUTE performs the given operations on the input AOs.
This is a transparent wrapper for the user selected operations and as such
doesn't add history.
CALL: b = compute(a)
b = compute(a, pl)
b = compute(a, 'a(1) + a(2)./a(3)')
b = compute(a, {'a(1) + a(2)./a(3)', 'log10(a(1))'})
PARAMETERS: 'Operations' - a string array describing the operations to
be performed. The input AOs are collected
together into a vector called 'a' and as
such should be so represented in your
operation description.
If no operation is input, then the output is just a copy of the inputs.
Parameters Description
EXAMPLES: 1) Add the two AOs, x and y, together
>> b = compute(x,y, plist('Operations', 'a(1) + a(2)'))
or
>> b = compute(x,y, 'a(1) + a(2)')
2) Perform two operations such that the output, b, contains two AOs
>> b = compute([x y], z, plist('Operations', {'2.*a(3)./a(1)', 'a(2)-a(1)'}))
VERSION: $Id: compute.m,v 1.21 2011/04/08 08:56:18 hewitson Exp $
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Method Details |
|
Access |
public |
Defining Class |
ao |
Sealed |
0 |
Static |
0 |
Parameter Description
Sets for this method … |
Default |
Default |
no description |
Key |
Default Value |
Options |
Description |
OPERATIONS |
'a' |
none |
A string describing the operations on the vector 'a' of AOs |
back to top
Some information of the method ao/compute are listed below: |
Class name |
ao |
Method name |
compute |
Category |
Signal Processing |
CVS Version |
$Id: compute.m,v 1.21 2011/04/08 08:56:18 hewitson Exp $ |
Min input args |
1 |
Max input args |
-1 |
Min output args |
1 |
Max output args |
-1 |
|
Method: ao/cohere |
|
Method: ao/confint |
 |
©LTP Team