I have the following code.
r = randi([0 5719],1,384); %Generate 384 random numbers between 0-5719.
for i=1:384 if (r(i)>=0 && r(i)<41) r(i)=='A'; end end
I want to assign the following ranges. Numbers 0-40 should get A assigned. So i want to assign the alphabet "A" to r(i) where r(i) lies between 0 to 40. Kindly help.
Best Answer