Code covered by the BSD License  

Highlights from
PIVMat 3.02

image thumbnail

PIVMat 3.02

by

 

27 Apr 2006 (Updated )

A PIV Post-processing and data analysis toolbox

smoothf (PIVMat Toolbox)
smoothf (PIVMat Toolbox)
PIVMat Function Reference<< Prev | Next >> 
smoothf
(Temporal) smooth of a vector/scalar field.

Description
SF = smoothf(F,N) returns the (temporal) smooth of the vector or scalar 
fields F (also called "Running average"), computed over N consecutive 
fields, using the function averf. The field number i is given by 
    SF(i) = averf(F(i:(i+N-1))); 
If the length of the input array F is L, the length of the smoothed 
array SF is L - 2*CEIL(N/2). (It is better to use an odd value for N). 
 
By default, smoothf considers that the zero elements of F are erroneous, 
and does not include them in the computations. If however you want to 
force the zero elements to be included in the computations, specify 
smoothf(F,N,'0'). 
 
If no output argument, the result is displayed by showf. 
 
Example
 
  v = loadvec('*.vc7'); 
  sf = smoothf(v, 5); 
  showf(sf); 
 
See Also
averf, spaverf, filterf, bwfilterf. 
 
Published output in the Help browser 
   showdemo smoothf 

 Previous: showfNext: spaverf 

2005-2013 PIVMat Toolbox 3.02

Contact us