replacefartherthan
Version 1.0.1 (191 KB) by
Chad Greene
Replace or delete values in a surface farther than a given distance from points.
Given a gridded surface Z corresponding to X and Y, this function will replace points in Z with NaN (or any other value you declare) if they are farther than maxdist from any point given by x,y. See the demo file for a example.
Cite As
Chad Greene (2024). replacefartherthan (https://www.mathworks.com/matlabcentral/fileexchange/46830-replacefartherthan), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2012b
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Language Fundamentals > Data Types > Numeric Types > NaNs >
Find more on NaNs in Help Center and MATLAB Answers
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.