What do we mean by for example result=uint8(result)

1 view (last 30 days)
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)

Fangjun Jiang
Fangjun Jiang on 13 Jul 2022
change the data type to uint8
a=1
a = 1
class(a)
ans = 'double'
b=uint8(a)
b = uint8 1
class(b)
ans = 'uint8'

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by