Byte to Long in Matlab

4 Ansichten (letzte 30 Tage)
Karthick Jonagadla
Karthick Jonagadla am 13 Jan. 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.

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 13 Jan. 2016
typecast(uint8(a), 'int32')

Weitere Antworten (0)

Kategorien

Mehr zu MATLAB finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by