what does the meaning of this?

1 ビュー (過去 30 日間)
ganesh  s
ganesh s 2011 年 11 月 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;
  1 件のコメント
ganesh  s
ganesh s 2011 年 11 月 30 日
thanks Daniel

サインインしてコメントする。

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by