Frage


Whhat is the best way to remove repitions of two or three vectors?
suppose I have a=[9 10 6 3 7],b=[1 9 6 7 8], I want to remove the repartitions so that:a=[9 10 6...

mehr als 10 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


fill row of matrix
Assume I have d=[1 3 5 6 7 8 1 4 5 10], and e=zeros(5,10). I want to take only the first 4 elements of d and put them into the ...

mehr als 10 Jahre vor | 1 Antwort | 0

1

Antwort

Beantwortet
fill part of vector
assume I have d=[1 3 5 6 7 8 1 4 5 10],e=zeros(5,10),I want to take only the first 4 elements of d and fit them to the first row...

mehr als 10 Jahre vor | 0

Frage


fill part of vector
I have a=[1 2 5 4 2 7 4 8 2 3](10 values),b=[0 1 2 3],I want to fill a so that a=[0 1 2 3 0 0 0 0 0 0],

mehr als 10 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


train puzzle solution vector
Let’s say, the first column represents the trip number in a train station. The other columns represent the number of passeng...

mehr als 10 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


Exam Problem schedule matrix
Let’s say, the first column represents the trip number in a train station. The other columns represent the number of passengers ...

mehr als 10 Jahre vor | 0 Antworten | 0

0

Antworten

Beantwortet
vector repetition number counting
the result explains that 1 is repeated 2 times in the positions 4&5 also 2 is not repeated.the position is at 1 4 is repeated...

mehr als 10 Jahre vor | 0

Frage


vector repetition number counting
Hi,I have this vector,x=[2 4 4 1 1].I want the result to be: 1 4 2 1 4 2 4 3 ...

mehr als 10 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


find repetition in matrix
Its OK.Thanks. if you are still interested: 2 82 10 16 15 66 76 71 83 44 49 4 ...

mehr als 10 Jahre vor | 0 Antworten | 0

0

Antworten

Beantwortet
find the reptition in vector
Its OK.Thanks. if you are still interested: 2 82 10 16 15 66 76 71 83 44 49 ...

mehr als 10 Jahre vor | 0

| akzeptiert

Frage


find the reptition in vector
HI,I have x=[2 4 4 1 1],I want if the number is not repeated like 2 to execute a condition.If repeated ,to execute another condi...

mehr als 10 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


I have y=[2 4 5 10] x=[2 5;4 6;5 1;5 2;5 7;10 3;10 4],I want to fill z=zeros(4,4) to be z=[2 5 0 0;4 6 0 0;5 1 2 7;10 3 4 0]
I have y=[2 4 5 10] x=[2 5;4 6;5 1;5 2;5 7;10 3;10 4], I want to fill z=zeros(4,4) to be z=[2 5 0 0;4 6 0 0;5 1 2 7;10 3 4 0] ...

fast 11 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


a=[2 5;4 6;5 1;5 2;5 7;10 3;10 4],I want it to be a[2 5 0 0;4 6 0 0;5 1 2 7;10 3 4 0]
a = [ 2 5; 4 6; 5 1; 5 2; 5 7; 10 3; 10 4], I want it to be a[ 2 5...

fast 11 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


I have them matrix a=[2 5;4 6;5 1; 5 2; 5 7;10 3;10 4],I want it to be a=[2 5 0 0;4 6 0 0;5 1 2 7;10 3 4 0]
I have them matrix a=[2 5;4 6;5 1; 5 2; 5 7;10 3;10 4], I want it to be a=[2 5 0 0;4 6 0 0;5 1 2 7;10 3 4 0]

fast 11 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


I have them matrix a=[2 5;4 6;5 1; 5 2; 5 7;10 3;10 4],I want it to be a=[2 5 0 0;4 6 0 0;5 1 2 7;10 3 4 0]
I have them matrix a=[2 5;4 6;5 1; 5 2; 5 7;10 3;10 4],I want it to be a=[2 5 0 0;4 6 0 0;5 1 ...

fast 11 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


I have the matrix a=[5 5 10 10 2 4 5],I want the result to be d=[5 1 2 7;10 3 4 0;2 5 0 0;4 6 0 0],
I have the matrix a=[5 5 10 10 2 4 5], I want the result to be d=[ 5 1 2 7; 10 3 4 0; 2 5 0 0; ...

fast 11 Jahre vor | 4 Antworten | 0

4

Antworten

Frage


Hi I have m by n matrix,I want to find the index of the max. of each column.It can be found by [i j]:max(x,[],2).this gives the index of max of each column in vector i.I want if there is a repetion in vector i to be reset to 0.thanks
Hi I have m by n matrix,I want to find the index of the max. of each column.It can be found by [i j]:max(x,[],2).this gives the...

etwa 11 Jahre vor | 1 Antwort | 0

1

Antwort