getlsb
최하위 비트
설명
예제
fi
객체의 최하위 비트 구하기
getlsb
를 사용하여 fi
객체 a
의 최하위 비트를 구합니다.
a = fi(-26, 1, 6, 0); c = getlsb(a)
c = 0 DataTypeMode: Fixed-point: binary point scaling Signedness: Unsigned WordLength: 1 FractionLength: 0
a
의 이진수 표현에서 fi
객체 a
의 최하위 비트가 0
임을 확인할 수 있습니다.
disp(bin(a))
100110
입력 인수
a
— 입력 fi
객체
스칼라 | 벡터 | 행렬 | 다차원 배열
입력 fi
객체로, 스칼라, 벡터, 행렬 또는 다차원 배열로 지정됩니다. getlsb
는 고정소수점 데이터형의 fi
객체만 지원합니다.
데이터형: fi
확장 기능
C/C++ 코드 생성
MATLAB® Coder™를 사용하여 C 코드나 C++ 코드를 생성할 수 있습니다.
HDL 코드 생성
HDL Coder™를 사용하여 FPGA 및 ASIC 설계를 위한 VHDL, Verilog 및 SystemVerilog 코드를 생성할 수 있습니다.
버전 내역
R2007b에 개발됨
참고 항목
bitand
| bitandreduce
| bitconcat
| bitget
| bitor
| bitorreduce
| bitset
| bitxor
| bitxorreduce
| getmsb
MATLAB 명령
다음 MATLAB 명령에 해당하는 링크를 클릭했습니다.
명령을 실행하려면 MATLAB 명령 창에 입력하십시오. 웹 브라우저는 MATLAB 명령을 지원하지 않습니다.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)