I want to fill the array essai with the value in the array key but my code return zeros
k= 1:length(key);yr=reshape(y.',1,[]);essai=zeros(1,length(yr));essai=uint8(essai);for n= 1:length(essai) if k <length(key)essai(n)=essai(n)+key(k)else if k== length(key) essai(n)=essai(n)+key(k); k=1; end end end
Best Answer