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) str2num(regexprep(x, '\d*', 'uint8($0)')), achar, 'UniformOutput', false);
Advertisement
Add Comment
Please, Sign In to add comment