Question

Selecting min value per row unless min value is repeated in another row.

Hi, I have a matrix of values shown below. I want to keep the lower value in each row, unless that lower value is repeated in an...

1 day ago | 1 answer | 0

Answered

Remove a number and its duplicates, not just the repeated values i.e. the way the unique function operates

Follow the method on the link provided below. https://www.mathworks.com/matlabcentral/answers/501734-selecting-min-value-per-ro...

Remove a number and its duplicates, not just the repeated values i.e. the way the unique function operates

Follow the method on the link provided below. https://www.mathworks.com/matlabcentral/answers/501734-selecting-min-value-per-ro...

2 months ago | 0

| accepted

Question

Remove a number and its duplicates, not just the repeated values i.e. the way the unique function operates

Hi, I am trying to remove both the number itself and its duplicates from my matrix. For example if A was the matrix (column vect...

2 months ago | 2 answers | 0

Question

return the row and column of values in a matrix as a single row vector stored in a separate matrix

Hello I have a matrix which I am trying to get the row and column numbers of all values less than 12 in my matrix. I wish to rep...

2 months ago | 1 answer | 0

Question

Sorting a data set to report failing values in pairs instead of individually

Hello, I am working with a set of 10 xy pairs of points in my data set. I sort the data based on how far apart the 10 points are...

2 months ago | 1 answer | 0

Question

Rewrite code to accommodate multiple values sent to a handle. Using Matlab R2019a

Hello I am trying to reformat my code so that it can be used for multiple values sent to one handle. Currently, I have only one ...

3 months ago | 0 answers | 0

Question

Define an if statement based on on finding duplicate xy pair values between arrays.

Hello, I have 2 arrays of different sizes which I am trying to compare for duplicates using an if statement. The condition to ac...

3 months ago | 1 answer | 0

Question

Placing annotations at specific xy coordinates

Just wondering but I wanted to put annotations/text boxes at specific coordinates but when I read up on the page I saw that the ...

4 months ago | 3 answers | 0

Question

Link specific coordinates to a color when plotting them

Hello I am wondering if there is a way to link specific coordinates in a matrix to always be plotted in a specific color. like i...

5 months ago | 2 answers | 0

Question

Sorting points based on comparing distances.

Hello, I am using matlab 2019a and I am trying to sort points based on comparing the distance between them. I use the pdist2 fun...

5 months ago | 2 answers | 1

Question

Target just the last added entries to a matrix

Hey, I am working with matrices and I wanted to know if there is a standard way/code to target just the last added entries to a ...

5 months ago | 1 answer | 0

Question

Drawing lines from 2 or more separate points to one target point and calculating the distance between them

Hello, I have a plot where I create random points scattered around a set of central points. I am trying to draw lines from the 2...

5 months ago | 1 answer | 1

Question

Using viscircles to draw circles around points.

Hello, I am trying to draw to circles using viscircles but some of the circles end up in random space instead of around the cent...

5 months ago | 1 answer | 0

Question

Deleting circles drawn using viscircles

Hello, I am trying to delete a group of circles drawn on my plot using viscircles. I have saved the group to a handle, but when ...

5 months ago | 1 answer | 0

Question

Use conditional statements to separate elements from a single array into 2 new arrays

Hello, I am trying to separate elements from a matrix A (10x2) using conditional statements. I compare the distances between th...

5 months ago | 1 answer | 0

Question

Data Linking And value reassignment for variables

Hello, I need to reassign selected plotted points to NaN values and update my graph so that they no longer show up on the graph ...

5 months ago | 1 answer | 0