Docs @ Psychtoolbox Wiki : hexstr

Search PTB Function help:
homepsychtoolbox.orgpage updateslogin

hexstr

PsychtoolboxPsychOneliners

str=hexstr(n)
Convert any number to a hex string representing the lower 32 bits,
emulating the C format %lx for a long. This works with both positive and
negative numbers, unlike the MATLAB format %x (and %tx and %bx) which
can't deal with negative numbers.

fprintf('Error 0x%s.\n',hexstr(err));

See also DEC2HEX, FPRINTF.




Path   Retrieve current version of hexstr.m from berliOS: beta | view WebSVN changelog of trunk branch
Psychtoolbox/PsychOneliners/hexstr.m


Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki
Page was generated in 0.0191 seconds