Hi...I got some issue here,i get "undefined function or variable matlab 'sout'. The first class assignment to a local variable determine its class"
Show older comments

I keep trying to solve but still can't. Some buddy can help me solve this? I appreciate your advice !
1 Comment
John D'Errico
on 23 May 2016
We might try, but how can we see? Is there text in that image?
Accepted Answer
More Answers (1)
Image Analyst
on 23 May 2016
Replace the whole function contents with this:
t0 = 60;
threshold = t0 + (max(img(:)) + min(img(:))) / 2;
sout = img > threshold;
1 Comment
ching linnkee
on 24 May 2016
Categories
Find more on HDL Coder in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!