What does the tilde symbol after an equals do?


This question already has an answer here:


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]


a = ~b 
a = [0 1 0]

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

Need Your Help

How to join correctly join words that trails or heads of dashes? - python

python regex string

I have a list of strings that contains tokens that ends or starts with - I need to join them up such that the words with dashes join up into the correct tokens, e.g.

Combining function, bind, c++ and managed code

c++ .net c++11 c++-cli tr1

I have a c++ function which is expecting a function object (AuthenticateNotifyFunc) to be passed to it thus: