[Solved] What does the tilde symbol after an equals do? [duplicate]


Basically a is assigned to the result of the logical not operator applied to b

For example if b is the matrix

b = [12 0 10]

then

a = ~b 
a = [0 1 0]

See http://www.mathworks.co.uk/help/matlab/ref/not.html for details

2

solved What does the tilde symbol after an equals do? [duplicate]