Prev: Compiling C code in matlab
Next: Color Order Issue
From: Oleg Komarov on 14 Jul 2010 17:14 "Chuck " <creed(a)bcisse.com> wrote in message <i1l5mk$c30$1(a)fred.mathworks.com>... > I have a Nx2 character matrix that I would like to reshape and write > to a file as an Nx16 character matrix. The characters are hex numbers. > I would like to take a matrix of hex characters formatted as: > 00 > 11 > 22 > 33 > 44 > 55 > 66 > 77 > 88 > 99 > aa > bb > cc > dd > ee > ff > and write it to a file as: > 0011223344556677 > 8899aabbccddeeff > > I could do it with a loop, but I'm hoping there is a simpler solution. > > Thanks reshape(repmat(dec2hex(0:15),1,2).',16,[]).' Oleg
|
Pages: 1 Prev: Compiling C code in matlab Next: Color Order Issue |