Question


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

mer än 10 år ago | 1 answer | 0

1

answer

Question


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

mer än 10 år ago | 1 answer | 0

1

answer

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

mer än 10 år ago | 0

Question


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

mer än 10 år ago | 2 answers | 0

2

answers

Question


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

mer än 10 år ago | 0 answers | 0

0

answers

Question


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

mer än 10 år ago | 0 answers | 0

0

answers

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

mer än 10 år ago | 0

Question


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

mer än 10 år ago | 1 answer | 0

1

answer

Question


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

mer än 10 år ago | 0 answers | 0

0

answers

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

mer än 10 år ago | 0

| accepted

Question


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

mer än 10 år ago | 2 answers | 0

2

answers

Question


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

mer än 10 år ago | 1 answer | 0

1

answer

Question


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

mer än 10 år ago | 0 answers | 0

0

answers

Question


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]

mer än 10 år ago | 0 answers | 0

0

answers

Question


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

mer än 10 år ago | 1 answer | 0

1

answer

Question


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

mer än 10 år ago | 4 answers | 0

4

answers

Question


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

mer än 10 år ago | 1 answer | 0

1

answer