photo

nitin jain


Aktiv seit 2017

Followers: 0   Following: 0

Statistik

MATLAB Answers

7 Fragen
0 Antworten

RANG
144.670
of 300.853

REPUTATION
0

BEITRÄGE
7 Fragen
0 Antworten

ANTWORTZUSTIMMUNG
42.86%

ERHALTENE STIMMEN
0

RANG
 of 21.094

REPUTATION
N/A

DURCHSCHNITTLICHE BEWERTUNG
0.00

BEITRÄGE
0 Dateien

DOWNLOADS
0

ALL TIME DOWNLOADS
0

RANG

of 171.319

BEITRÄGE
0 Probleme
0 Lösungen

PUNKTESTAND
0

ANZAHL DER ABZEICHEN
0

BEITRÄGE
0 Beiträge

BEITRÄGE
0 Öffentlich Kanäle

DURCHSCHNITTLICHE BEWERTUNG

BEITRÄGE
0 Discussions

DURCHSCHNITTLICHE ANZAHL DER LIKES

  • Thankful Level 1

Abzeichen anzeigen

Feeds

Anzeigen nach

Frage


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

mehr als 8 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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.

mehr als 8 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


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...

mehr als 8 Jahre vor | 1 Antwort | 0

1

Antwort