标签: matlab symbols arithmetic-expressions
波形符号~在Matlab中的作用是什么?
~
例如,我有Matlab行,其中a和b是表格。
a
b
a =~b;
答案 0 :(得分:1)
基本上a被分配给应用于b的逻辑非运算符的结果
例如,如果b是矩阵
b = [12 0 10]
然后
a = ~b a = [0 1 0]
有关详细信息,请参阅http://www.mathworks.co.uk/help/matlab/ref/not.html