Question

Use sorted variable to reorder rows of a matrix

I am attempting to reorder the rows of a matrix from greatest number of nonzero elements to least. I calculate the number of zer...

4 months ago | 2 answers | 0

Question

Store points into different cell arrays using if statement and ismember()

I am working with cell arrays trying to store points in them. I am trying to use and if statement with ismember() as my trigger ...

6 months ago | 0 answers | 0

Question

Overwriting information in a cell array

I am working with cell arrays and matrices. I am trying to overwite information in a cell but instead it places the new data int...

6 months ago | 1 answer | 0

Question

Remove all NaN values from an array.

I have a an arary with NaN values and Im trying to return the array with no NaN rows but the command Im using only returns the f...

6 months ago | 1 answer | 0

Question

Pseudo Element by Element Vector Subtraction

I am trying to subtract vectors stored in two different arrays. I want to subtract every row vector in matrix B from every row v...

6 months ago | 1 answer | 0

Question

Count the number of times a value appears in a row and save the row number

I wanted to sort points in an array based on how many times a number less than or equal to 1.5 appears in the row. I want to sav...

7 months ago | 1 answer | 0

Question

Rescale multiple spheres on the same 3d plot

I am trying to plot multipe spheres of different sizes on the same 3D plot. I'd like the spheres placed closest to the origin to...

7 months ago | 1 answer | 0

Question

Rescale points plotted using scatter3 based on their distance from the origin

I wanted to know if its possible to rescale the markersizes used in scatter3 based on the marker's distance from the origin (0,0...

7 months ago | 1 answer | 0

Question

Select and Save the points that have 3 neighbors exactly 1 unit of distance away.

I am trying to select and save points to an array. I want to get all the points that have 3 points exaclty 1 unit away. I have s...

8 months ago | 1 answer | 0

Question

What's the diameter of the standard circle marker 'o' in scatter3 plot ?

Does anyone know how to find out the diameter size of the standard circle marker 'o' on a scatter3 plot?

8 months ago | 1 answer | 0

Answered

Fix an infinite while loop by properly counting the number of elements added to an array

EDIT: I solved my problem by moving the acceptance counter into my if statement within the while loop instead of relying on chan...

Fix an infinite while loop by properly counting the number of elements added to an array

EDIT: I solved my problem by moving the acceptance counter into my if statement within the while loop instead of relying on chan...

8 months ago | 0

| accepted

Question

Fix an infinite while loop by properly counting the number of elements added to an array

I am trying to calculate the condition numbers of multiple square 2x2 matrices. I generate a matrix A with random value of l, m...

8 months ago | 2 answers | 0

Question

is there an alternative to pdist2 that calculates the distance between a matrices with different column numbers

I was wondering if there is a built in matlab fucntion that calculates the distance between two arrays that don't have the same ...

8 months ago | 1 answer | 0