提问


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

10 years 前 | 1 个回答 | 0

1

个回答

提问


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

10 years 前 | 1 个回答 | 0

1

个回答

已回答
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...

10 years 前 | 0

提问


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

10 years 前 | 2 个回答 | 0

2

个回答

提问


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

10 years 前 | 0 个回答 | 0

0

个回答

提问


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

10 years 前 | 0 个回答 | 0

0

个回答

已回答
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...

10 years 前 | 0

提问


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

10 years 前 | 1 个回答 | 0

1

个回答

提问


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

10 years 前 | 0 个回答 | 0

0

个回答

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

10 years 前 | 0

| 已接受

提问


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

10 years 前 | 2 个回答 | 0

2

个回答

提问


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

11 years 前 | 1 个回答 | 0

1

个回答

提问


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

11 years 前 | 0 个回答 | 0

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

11 years 前 | 0 个回答 | 0

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

11 years 前 | 1 个回答 | 0

1

个回答

提问


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

11 years 前 | 4 个回答 | 0

4

个回答

提问


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

11 years 前 | 1 个回答 | 0

1

个回答