Josue Ortega
Followers: 0 Following: 0
Feeds
提问
Using find to determine equality not of scalars, but vectors
Hi, I have two vectors say x=[1 2 3 4 5 ] and y=[2 4]. I would like to find the elements of y in x. Usually, if y is a scalar...
1 year 前 | 2 个回答 | 0
2
个回答提问
using matchpairs when objects have different capacities
I am using the matchpairs function to determine the assignment of objects to people that minimizes the total cost. It takes as...
1 year 前 | 2 个回答 | 0
2
个回答提问
Reorganizing integer vector preserving order
Hi, I have a vector that is a randmperm of n, so it looks like this x= 2 5 6 13 18 8 14 4 9 ...
1 year 前 | 1 个回答 | 0
1
个回答提问
Swap k elements in an n x1 vector
Hi I have a vector which is a random permutation of [1:n]. Say x=randperm(n) I want to create a vector that is equal to x, but...
2 years 前 | 1 个回答 | 0
1
个回答提问
Finding the most common element in the first row of a matrix
Hi there I have a matrix A, and I am wanting to take the first non zero element of each column. For example, for A =[...
2 years 前 | 1 个回答 | 0