powered by
Calculate an expanded bounding region based on a percent of the existing boundaries
expandbound(g, pct = 0.1)
vector, new range
vector of values
fractional percent to expand
Jonathan M. Lees<jonathan.lees@unc.edu>
uses the range of the exising vector to estimate the expanded bound
i = 5:10 exi = expandbound(i, pct = 0.1) range(i) range(exi)
Run the code above in your browser using DataLab