Feeds
提问
How can I correct this code so that it breaks out of the loop when x is equal to one of the options in the x~=
j=randi([1 20],1); i=randi([1 20],1) ; x=[i,j]; while x~=[1,10]|[10,1]|[2,9]|[9,2]|[3,8]|[8,3]|[4,7]|[7,4]|[6,15]|[15,6]|[7,1...
3 years 前 | 1 个回答 | 0
1
个回答提问
How can I swap two values in a sequence and create a new sequence
If I create a sequence as below, how can I swap the postion of for example the first A and last D in the sequence S=['A','A...
3 years 前 | 1 个回答 | 0
