Hello
I searched regarding this error but still could not resolve it. I am using the following code:
function[hexoutput] = hexaoutput(colordata) [row col] = size(colordata); hexoutput=zeros(row,col); for i=1:row for j=1:col hexoutput(i,j) = dec2hex(colordata(i,j),6); end end end
I am getting the subscripted dim mismatch error. But this is how we loop through a matrix. I am confused. Any help would be great. Thanks.
Best Answer