質問


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年以上 前 | 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年以上 前 | 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年以上 前 | 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年以上 前 | 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年以上 前 | 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年以上 前 | 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年以上 前 | 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年以上 前 | 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年以上 前 | 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年以上 前 | 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年以上 前 | 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年弱 前 | 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年弱 前 | 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年弱 前 | 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年弱 前 | 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年弱 前 | 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年 前 | 1 件の回答 | 0

1

回答