Byte to Long in Matlab

2 visualizzazioni (ultimi 30 giorni)
Karthick Jonagadla
Karthick Jonagadla il 13 Gen 2016
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.

Risposta accettata

Walter Roberson
Walter Roberson il 13 Gen 2016
typecast(uint8(a), 'int32')

Più risposte (0)

Categorie

Scopri di più su MATLAB in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by