怎么在在MATLAB实现按位取反操作?

조회 수: 9 (최근 30일)
Yang
Yang 2023년 4월 11일
接位与,接位或都有,但没有按位取反,那么,如果想按位取反,该怎么做?据说~是接位取反,not也是,但
a = int8(10) %0b00001010,期望得到 0b11110101
b = ~a
结果并不是0b11110101

답변 (0개)

카테고리

Help CenterFile Exchange에서 外部语言接口에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!