photo

Dillon O'Neill


Last seen: 3 years ago Active since 2023

Followers: 0   Following: 0

Statistics

MATLAB Answers

2 Questions
0 Answers

RANK
76,279
of 301,681

REPUTATION
0

CONTRIBUTIONS
2 Questions
0 Answers

ANSWER ACCEPTANCE
100.0%

VOTES RECEIVED
0

RANK
 of 21,380

REPUTATION
N/A

AVERAGE RATING
0.00

CONTRIBUTIONS
0 Files

DOWNLOADS
0

ALL TIME DOWNLOADS
0

RANK

of 176,086

CONTRIBUTIONS
0 Problems
0 Solutions

SCORE
0

NUMBER OF BADGES
0

CONTRIBUTIONS
0 Posts

CONTRIBUTIONS
0 Public Channels

AVERAGE RATING

CONTRIBUTIONS
0 Discussions

AVERAGE NO. OF LIKES

  • Thankful Level 2

View badges

Feeds

View by

Question


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 ago | 1 answer | 0

1

answer

Question


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 ago | 1 answer | 0

1

answer