cropmat

crop arrays with axis-aligned minimum bounding box
1.7K 次下载
更新时间 2009/9/21

查看许可证

Often I have to extract a subset of a two-dimensional array for further analysis. Usually I do this with logical indexing. But most often the problem with logical indexing is that I get a column vector which I then have to reshape or index into a new array.

cropmat solves this problem. The function crops a subset of an array based on the axis-aligned minimum bounding rectangle. One advantage is that you can perform the operation on several matrices (e.g. coordinate matrices generated by meshgrid) at one time. Moreover, cropmat works on arrays with an arbitrary number of dimensions.

引用格式

Wolfgang Schwanghart (2024). cropmat (https://www.mathworks.com/matlabcentral/fileexchange/25354-cropmat), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2009a
兼容任何版本
平台兼容性
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.1.0.0

changed name of the function from clipmat to cropmat.

1.0.0.0