>> a=[3 8 6 4 9];>> b=randint(1,1,[1 5])%%a为矩阵,利用randint随机产生其矩阵序号,然后代入序号,即可得到随机抽取的元素b = 5>> a(b)ans = 9