I have a byte vector a = [166;123;34;85], I want to convert this to long. I did this in C# using BitConverter.ToInt32 but not able to figure out a way in Matlab. The answer to this is known i.e. 1428323238 Please help.

 Respuesta aceptada

Walter Roberson
Walter Roberson el 13 de En. de 2016

0 votos

typecast(uint8(a), 'int32')

Más respuestas (0)

Categorías

Más información sobre Entering Commands en Centro de ayuda y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by