Watermarking

5 views (last 30 days)
dinesh p
dinesh p on 27 Sep 2011
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.......

Answers (1)

Titus Edelhofer
Titus Edelhofer on 27 Sep 2011
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

Community Treasure Hunt

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

Start Hunting!