Borrar filtros
Borrar filtros

what dos this instruction mean

1 visualización (últimos 30 días)
billel madridi
billel madridi el 16 de Mayo de 2013
i meet this instruction when analyzing a matlab file could you help me what does it mean ?
yone=(y==i)+(y~=i)*-1;
when y is a column vector and i is fix number i=4;
what will be the size of yone in this case ?

Respuestas (1)

Walter Roberson
Walter Roberson el 16 de Mayo de 2013
A value of "1" where the entries are "i", and a value of "-1" where the entries are not "i", and 0 where the entries are NaN.

Categorías

Más información sobre Statistics and Machine Learning Toolbox en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by