フィルターのクリア

how to break the input computer file into a series of bytes using MATLAB code?

2 ビュー (過去 30 日間)
Neetha Mary
Neetha Mary 2016 年 2 月 8 日
編集済み: Guillaume 2016 年 2 月 8 日
I want to perform byte frequency analysis on a given input file for type type detection. Can anyone suggest me how to break the input computer file into a series of bytes using MATLAB code?

採用された回答

Guillaume
Guillaume 2016 年 2 月 8 日
編集済み: Guillaume 2016 年 2 月 8 日
By default fread reads the file as bytes:
fid = fopen('yourfile', 'r');
bytes = fread(fid);
%or you can use
%bytes = fread(fid, Inf, '*uint8');
%to return bytes as uint8 instead of double

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by