what does the meaning of this?

2 visualizaciones (últimos 30 días)
ganesh s
ganesh s el 30 de Nov. de 2011
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

Respuesta aceptada

Daniel Shub
Daniel Shub el 30 de Nov. de 2011
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;

Más respuestas (0)

Categorías

Más información sobre Get Started with MATLAB en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by