GetBits.m

Extract bits form an uint* word
195 Downloads
Updated 11 Jun 2014

View License

% 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://uk.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 Linux
Categories
Find more on Author Block Masks in Help Center and MATLAB Answers
Version Published Release Notes
1.0.0.0