Watermarking
Show older comments
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
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
Categories
Find more on Watermarking in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!