Community Profile ali eskandari

Last seen: 3 months ago Active since 2020

Statistics

• Content Feed

View by

Question

how apply k-means on a n by m matrix based on rows
I want to apply a kmeans clustering with cosine distance on a n by m matrix and I want to define each row as a sample. how can I...

4 months ago | 1 answer | 0

1

Question

how to scan a matrix row by row and save index of elements
A = 1 2 3 4 0.5 5 6 2 5 3 1 3 I have a matrix-like A, and my aim is to scan the...

5 months ago | 1 answer | 0

1

Question

count matrix elements in defined intervals by histogram
In the attached matrix, I want to extract the ratios of matrix elements at defined intervals. In order to do that, I have writte...

6 months ago | 1 answer | 0

1

Question

extract the intersection of two matrices
Hi I have two matrices, one is binary (A) and other one with values between [0-1] (B). My aim is to extract the intersection of...

6 months ago | 1 answer | 0

1

Question

Extract pixel values inside a Binary Mask
I have an image and the ROI points. I did the following to extract the ROI by creating a binary mask with poly2mask. now I want ...

8 months ago | 1 answer | 0

1

Question

I have two matrices, A and B. I want to extract values of matrix A based on indexes of B. Consider B like a pixel position in a...

8 months ago | 1 answer | 0

1

Question

Shanon entropy of a matrix
I defined a matrix like A and I want to calculate its entropy and when I use the entropy function it returns zero : A = [2,3,4...

10 months ago | 1 answer | 0

1

Question

how to define a gradient colormap
I have different matrices with elements between zero and one, then I want to subtract some of them from each other and plot the ...

11 months ago | 2 answers | 0

2

Question

Create a mask for different values
I want to subtract two images and show the results in another figure. For instance, if the subtraction matrix has 0 value indica...

11 months ago | 1 answer | 0