필터 지우기
필터 지우기

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

조회 수: 2 (최근 30일)
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 CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by