CreateBorder
Version 1.0.0.0 (980 Bytes) by
AA
To create a custom border around input data. (Useful for image/data padding)
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);
Cite As
AA (2026). CreateBorder (https://uk.mathworks.com/matlabcentral/fileexchange/59371-createborder), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2014a
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
- Image Processing and Computer Vision > Image Processing Toolbox > Image Segmentation and Analysis > Region and Image Properties >
Find more on Region and Image Properties in Help Center and MATLAB Answers
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 | . |
