writing binary values into file in MATLAB -


i converting image file binary process in vhdl. while converting image binary , when writing matrix text file unnecessary commas came between number.i want column vector.my input square matrix.all working except comma part.i using dummy values.can give suggestions

a=[1 3;6 9]; b=dec2bin(a'); fname = 'output.txt'; fid = fopen('output.txt','w'); dlmwrite(fname, b); 

but output file this

0,0,0,1 0,0,1,1 0,1,1,0 1,0,0,1 

i expecting

0001 0011 0110 1001 

you have pass '' delimeter . ref:- dlmwrite usage

dlmwrite('output.txt', b, '') 

Comments

Popular posts from this blog

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

javascript - addthis share facebook and google+ url -