Current versions can have hex constants
0xF810s16
If you happen to have the hex as a variable
s = 'f810' typecast(uint16(sscanf(s, '%x')), 'int16')
Using sscanf is not the fastest possible way for larger arrays, but typecast is faster than if statement checking the range. I posted a number of timing tests about 2 weeks ago in discussions with Robert.