I need to remove randi from the for loop. Any help would appreciate.
I=30; t1=randi([1 5],1,I); t2=randi([6 10],1,I); for i=1:I TD(1,i)=randi([t1(1,i) t2(1,i)],1,1); end
for looprani
I=30; t1=randi([1 5],1,I); t2=randi([6 10],1,I); for i=1:I TD(1,i)=randi([t1(1,i) t2(1,i)],1,1); end
Best Answer