Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- a = [0,0,0,0,0,0,0,0;0,0,0,0,0,0,0,1;1,0,0,0,0,0,0,0];
- achar = cellfun(@(x) dec2bin(x)', mat2cell(a, ones(size(a,1),1), 8), 'UniformOutput', false);
- auint8 = cellfun(@(x) uint8(bin2dec(x)), achar, 'UniformOutput', false);
Advertisement
Add Comment
Please, Sign In to add comment