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