operf.mBack to Contents<< Prev |  Next >> 

operf
Perform operation on vector/scalar fields

Description
FF = operf(OP,F1,F2) performs operation specified by OP on the fields 
F1 and F2. Valid operations are '+', '-', '.*' and './'. F1 and F2 must 
be of the same type (vector or scalar fields). 
 
FF = operf(OP,F,N), where N is a number, performs operation specified 
by OP on the field F. Valid operations are '+', '-', '*', '/' and '.^'. 
 
FF = operf(OP,F) performs unary operation specified by OP on F. OP may 
be '+' (does nothing), '-' (inverts the field), or any MODE operation 
from vec2scal (eg, operf('rot',V) is equivalent to vec2scal(V,'rot')). 
 
operf(..) without output argument shows the result with showvec or 
showscal. 
 
Examples: 
  v=loadset; 
  showvec(operf('-',v)); 
  showscal(operf('/',vec2scal(v,'rot'),2)); 
 
F. Moisy 
Revision: 1.0,  Date: 2005/10/29. 
 
See Also
vec2scal, showvec, showscal, averf, spaverf, subaverf. 

 Previous: mstimeNext: randvec 

Help file generated by m2html 1.06