File Exchange

image thumbnail

CreateBorder

version 1.0.0.0 (980 Bytes) by AA
To create a custom border around input data. (Useful for image/data padding)

0 Downloads

Updated 01 Oct 2016

View License

To create a custom border around input data.
... Function - CreateBorder(data_in, H_border, W_border, border_val)
... Creates a border defined by border size around data_in of value = border_val
... For eg -
... >> a = magic(4);
... >> % To create a [2x4] border of 0s around 'a'
... >> a = CreateBorder(a, 2, 4, 0);

Comments and Ratings (0)

Updates

1.0.0.0

.

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