help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Masking using Hexadecimal Values


From: Chip Wachob
Subject: Masking using Hexadecimal Values
Date: Wed, 3 Aug 2016 13:16:16 -0400

Hello,

I'm new to Octave, but I am trying to do some work where I need to mask off bits of a value.

I've tried using bitand() but that only seems to return a binary value.  The function seems to return either a 1 or 0 but what I am looking for is a function / command that will return the bit-wise and of two numbers.

Eg:

bitand (0x55AA, 0xF0F0) is currently producing a 0

What command/function/code is required to have the statement yield 0x50A0?

Thank you in advance for your time,





reply via email to

[Prev in Thread] Current Thread [Next in Thread]