문제

What does the tilde symbol ~ do in Matlab?

for example, I've got the Matlab line, in which a and b are tables.

a =~b;
도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top