i have a code which is written in 2006.the author's name is Xiang Bai .code dose not run. i cant find the problem. so i attached the code and the error message.can anyone help me? i really need help.

1 次查看(过去 30 天)
code is about finding the skeleton in shapes. of course it is about skeleton pruning in shapes. i sent mails to author .but he did't answer.i'm begging everyone who read this message help me.thanks a lot

回答(1 个)

Jos (10584)
Jos (10584) 2016-3-25
This errors arise when the classes of two variables differ.
a = uint32(4)
b = int8(4)
a-b
You can try to cast the variables into the same class:
q = uint32(q)
i = uint32(i)
j = uint32(j)
see doc class for more info

Community Treasure Hunt

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

Start Hunting!

Translated by