apth(II,wt,dm)

版本 2.0.0.0 (2.4 KB) 作者: ja
ND max path using dynamic programming
222.0 次下载
更新时间 2015/5/27

查看许可证

takes three values - two of which are optional:
II is the cost function (required)
wt is the weight matrix, used to provide weighted direction. If none is specified a 3x3x... matrix of ones is created for the weights.
dm is the dimension through which the path is to be found. If none is specified, dm is set to the last dimension.
returns a linearly indexed 1D line through the cost function starting at the first surface in the dmth dimension and finishing at the last surface in the dmth dimension. The line corresponds to the line that can be found with the maximum sum of values along that line, with constraints specified by the weight function.

min path can be found, instead of max path, by setting II = -II

引用格式

ja (2024). apth(II,wt,dm) (https://www.mathworks.com/matlabcentral/fileexchange/43918-apth-ii-wt-dm), MATLAB Central File Exchange. 检索时间: .

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

Community Treasure Hunt

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

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

Removed some things I didn't mean to leave in, and updated it to handle an ambiguous number of dimensions.

1.0.0.0