photo

nitin jain


Active since 2017

Followers: 0   Following: 0

Statistics

MATLAB Answers

7 Questions
0 Answers

RANK
94,596
of 300,392

REPUTATION
0

CONTRIBUTIONS
7 Questions
0 Answers

ANSWER ACCEPTANCE
42.86%

VOTES RECEIVED
0

RANK
 of 20,934

REPUTATION
N/A

AVERAGE RATING
0.00

CONTRIBUTIONS
0 Files

DOWNLOADS
0

ALL TIME DOWNLOADS
0

RANK

of 168,373

CONTRIBUTIONS
0 Problems
0 Solutions

SCORE
0

NUMBER OF BADGES
0

CONTRIBUTIONS
0 Posts

CONTRIBUTIONS
0 Public Channels

AVERAGE RATING

CONTRIBUTIONS
0 Highlights

AVERAGE NO. OF LIKES

  • Thankful Level 1

View badges

Feeds

View by

Question


I have a vector x=[2 3 4 5] and value of x change at each iteration.I want to compare value of x at current iteration with value of x at previous iteration.So how can i store value of x at previous iteration.
eg- for i=1:10 x=[2 3 4 5] x_new=[5 3 2 4]%after some calculation value of x at next iteration compare x with x_new

8 years ago | 1 answer | 0

1

answer

Question


I have a row vector x which is random permutation of r where r=1:15 .I want to make a program in which whenever value of r is equal to x increase the counter else counter contain previous value.
first check the which element of array is equal to r and the if is equal then increment the count by one.

8 years ago | 0 answers | 0

0

answers

Question


how to select two number randomly from an array and perform swapping between these two number?
for example in array A=[1 2 3 5 6 9 10] two number selected randomly are 3 and 6 so after swapping array be like A=[1 2 6 5 3 9...

8 years ago | 1 answer | 0

1

answer