What do we mean by for example result=uint8(result)
Show older comments
for i=1:d1
for j=1:d2
if (tumeurCA(i,j)==1)
Resultat(i,j)=image(i,j);
index=index+1;
else
Resultat(i,j)=0;
end
end
end
Resultat=uint8(Resultat);uint8
Answers (1)
change the data type to uint8
a=1
class(a)
b=uint8(a)
class(b)
1 Comment
abdellaoui fairuz
on 13 Jul 2022
Categories
Find more on Matrices and Arrays in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!