operationOnTwoField​s

A simple mathematical operation like subtracting on two 2d fields with multiple scalar values.
258 Downloads
Updated 25 Mar 2013

View License

Performs a simple mathematical operation (e.g. adding, subtracting, multiplying, dividing) on two two-dimensional fields. The fields can contain multiple scalar values like the components of velocity. One field is interpolated using TriScatteredInterp to match the other field.
Originally intended to determine the convergence of Particle Image Velocimetry data when using multiple adaptive cross-correlations or easily see the differences between measurements.

Note: I wasn't aware of the fact that it did depend on the Neural Network Toolbox, I'm sorry if anybody ran into odd error messages (next time let me know otherwise it stays useless ;-) ).

Cite As

Bastian Tietjen (2024). operationOnTwoFields (https://www.mathworks.com/matlabcentral/fileexchange/36752-operationontwofields), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2010b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.8.0.0

small improvement in the removeNans subfunction

1.7.0.0

Removed the dependence on the Neural Network Toolbox

1.5.0.0

Removed one of my comments in the $help since it was not entirely correct, included a reference to the underlying MATLAB function instead.
Added a screenshot to show the functionality.

1.4.0.0

Corrected typos, removed redundant license, the helper function now writes as well the interpolation type in the summary.

1.0.0.0