photo

Josue Ortega


Last seen: 16 days ago Active since 2022

Followers: 0   Following: 0

Statistics

  • Thankful Level 2

View badges

Feeds

View by

Question


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 ago | 2 answers | 0

2

answers

Question


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 ago | 2 answers | 0

2

answers

Question


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 ago | 1 answer | 0

1

answer

Question


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 ago | 1 answer | 0

1

answer

Question


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 ago | 1 answer | 0

1

answer