How to use a function which is not existing in matlab?

1 次查看(过去 30 天)
Hey, while doing some code for image segmentation i got stuck at an error saying "Undefined function or variable 'superpixels'". And i checked whether the function name exists on matlab search path and i found that superpixels doesnot exist. Now what should i do to use the function superpixels in matlab version R2015a.
  1 个评论
KSSV
KSSV 2017-3-15
This function is introduced in 2016a. Either use the version which has this function or write your code for the functionality.

请先登录,再进行评论。

回答(1 个)

Walter Roberson
Walter Roberson 2017-3-15
superpixels() was introduced in R2016a, so you can upgrade, or you can write your own version of the code. Or perhaps it happens that https://www.mathworks.com/matlabcentral/fileexchange/50184-slic-superpixels-for-e%EF%AC%83cient-graph-based-dimensionality-reduction-of-hyperspectral-imagery would be useful for you.

标签

Community Treasure Hunt

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

Start Hunting!

Translated by