Hello , i have this list a=[0,1];b=[1,0];c=[0,-1];d=[-1,0]; list=[a;b;c;d]
I want to extract randomly one of these four pairs and i want to it with a function handle.For example function= @ (i don't know what to put here(i think leaving it empty)) length(list)*rand… Anyway,sth like that. If i call the function it will extract one pair from my list.For example, "0 1".
Thank you.
Best Answer