GetBits.m

Extract bits form an uint* word
192 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 (2024). GetBits.m (https://www.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

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0