% function [ ret, mask ] = GetBits( uint, Cbits )
%
% Function: Extract the bits form 'uint*' and shift back to LSB=1.
% 'int*' means 'uint8', 'uint16', 'uint32' or 'uint64'.
%
% Bitnumbering: |.......|.......|.......|.......|.......|.......|.......|.......|
% 63 55 47 39 31 23 15 7 0
%
% Testmode: GetBits() No arguments
Cite As
Jan de Wilde (2026). GetBits.m (https://in.mathworks.com/matlabcentral/fileexchange/46919-getbits-m), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2013b
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Author Block Masks in Help Center and MATLAB Answers
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
