Byte to Long in Matlab

1 回表示 (過去 30 日間)
Karthick Jonagadla
Karthick Jonagadla 2016 年 1 月 13 日
コメント済み: Karthick Jonagadla 2016 年 1 月 13 日
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.

採用された回答

Walter Roberson
Walter Roberson 2016 年 1 月 13 日
typecast(uint8(a), 'int32')
  1 件のコメント
Karthick Jonagadla
Karthick Jonagadla 2016 年 1 月 13 日
thanks :-)

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMATLAB Coder についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by