Clear Filters
Clear Filters

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

1 view (last 30 days)
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 Comment
KSSV
KSSV on 15 Mar 2017
This function is introduced in 2016a. Either use the version which has this function or write your code for the functionality.

Sign in to comment.

Answers (1)

Walter Roberson
Walter Roberson on 15 Mar 2017
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!