Hi,
As the error message suggest the custom ReadFcn must return a categorical array for pixel labels. If the file you are reading return a numeric array you can convert it to categorical array using categorical.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!