Watermarking
이전 댓글 표시
I am doing a project in digital watermarking. Currently I need to know the available methods to convert a text file(.txt extension) into a stream of bits(1s and 0s). Is there any function in Matlab to perform this operation or should I try any alternative method?? Pls help me soomeone.......
답변 (1개)
Titus Edelhofer
2011년 9월 27일
Hi,
just read in the file as bits:
% open the file
fid = fopen('yourfile.txt', 'rt');
% read as unsigned 1 bit data:
data = fread(fid, '*ubit1');
% done:
fclose(fid);
Titus
카테고리
도움말 센터 및 File Exchange에서 Watermarking에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!