Domanda


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

oltre 10 anni fa | 1 risposta | 0

1

risposta

Domanda


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

oltre 10 anni fa | 1 risposta | 0

1

risposta

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

oltre 10 anni fa | 0

Domanda


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],

oltre 10 anni fa | 2 risposte | 0

2

risposte

Domanda


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

oltre 10 anni fa | 0 risposte | 0

0

risposte

Domanda


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

oltre 10 anni fa | 0 risposte | 0

0

risposte

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

oltre 10 anni fa | 0

Domanda


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

oltre 10 anni fa | 1 risposta | 0

1

risposta

Domanda


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

oltre 10 anni fa | 0 risposte | 0

0

risposte

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

oltre 10 anni fa | 0

| accettato

Domanda


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

oltre 10 anni fa | 2 risposte | 0

2

risposte

Domanda


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

circa 11 anni fa | 1 risposta | 0

1

risposta

Domanda


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

circa 11 anni fa | 0 risposte | 0

0

risposte

Domanda


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]

circa 11 anni fa | 0 risposte | 0

0

risposte

Domanda


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

circa 11 anni fa | 1 risposta | 0

1

risposta

Domanda


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

circa 11 anni fa | 4 risposte | 0

4

risposte

Domanda


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

circa 11 anni fa | 1 risposta | 0

1

risposta