i m looking for an alternate method for bin2dec conversion to speed up my code. bin2dec functions takes 2.5 to 3 sec as run time.Is there any solution. Here is my code:
ticimg = randi([0, 255], 256, 256);y=dec2bin(img(:),8);I=reshape(y,256,2048);P1=reshape(bin2dec(num2str(reshape(I, 65536, []))), 256, 256);tocElapsed time is 1.494633 seconds.selftime of bin2dec-----1.420 s
Thanks in advance
Best Answer