what does the meaning of this?

2 次查看(过去 30 天)
hello sir i am having one matlab code but i did not understand the meaning of this line "t(:,:)=t(:,:)+uint8(t(:,:)<1)".can anybody tell me the meaning of this line. thanking You

采纳的回答

Daniel Shub
Daniel Shub 2011-11-30
It is basically:
t = t+1 for t < 1
t = t otherwise
A clear way to write it might be
t(t < 1) = t(t < 1)+1;

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Image Processing Toolbox 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by