Community Profile

# Elysi Cochin

Last seen: Today Active since 2012

...

All

#### Content Feed

View by

Question

select few values from a vector randomly
v1 = [3 4 7 14 15 18 23 25 28 31 34 36 37 38 39 40 42 44 46]; v2 = [1 2 5 6 8 9 10 11 12 13 16 17 19 20 21 22 24 26 27 29 ...

8 hours ago | 2 answers | 0

### 2

Question

Find minimum error function using gradient descent
Find the minimum error function using gradient descent for the function (x-1).^2 - 2 I found a code in matlabcentral, but I'm...

15 days ago | 1 answer | 0

### 1

Question

Find total area of all circles
How can we calculate the total area covered by all the circles together using Monte Carlo method?

15 days ago | 1 answer | 0

### 1

Question

Find the percentage of area occupied by an object
From the below image, how can I find - what percentage of the yellow region does the total pink region occupy?

1 month ago | 2 answers | 0

### 2

Question

Arrange clustered rows based on their label value
Suppose I have a matrix of size 100 x 42. Now I do kmeans clustering [idx,C] = kmeans(XTrain,8); Suppose the first 10 rows of...

3 months ago | 1 answer | 0

### 1

Question

display string in table
row1 = {'a' 'b' 'c' 'd'}; row2 = {'m' 'n' 'o' 'p'}; varnames = {'Col1' 'Col2' 'Col3' 'Col4'}; rownames = {'Row1' 'Row2'}; ...

4 months ago | 1 answer | 0

### 1

Question

concatenate 2 vectors as string
I have 2 vectors a = [87.46 85.38 85.99 85.49 88.56 85.67] b = [0.16 1.97 2.38 2.38 1.63 1.81] I wanted to save the values o...

4 months ago | 1 answer | 0

### 1

Question

Represent a vector as ± form
I have a vector v1 = [86 90 87 89 88]; I want to represent the vector v1 as 88±2 Please please me to represent any vector of...

4 months ago | 1 answer | 0

### 1

Question

change legend name of ROC
How to change the legend name (class1, class2, ...) of ROC when using plotroc(Ts,Y)

5 months ago | 1 answer | 0

### 1

Question

Change the numeric class label of confusion matrix to string
How to change the numeric class label (1, 2, 3... on the xlabel and ylabel) of a confusion matrix to string, when using confusi...

5 months ago | 1 answer | 0

### 1

Question

Absolute intensity of an image
I read a line saying "In some cases we may not want the filter to respond to the absolute intensity of an image" What is the di...

5 months ago | 1 answer | 0

### 1

Question

save a mat-file in a specific folder
I have 2 matrices mat1 and mat2 I wanted to save these two variables in a specific folder in the name my_matrices When using t...

6 months ago | 1 answer | 0

### 1

Question

keep few images and delete the rest in a folder
Suppose I have 10 images, and i have saved all the pathname and filename in a variable all_files I have a vector b = [ 2 4 6 ];...

6 months ago | 1 answer | 0

### 1

Question

Randomly shuffle folder of images and save it
I have 5 images named 1.jpg, 2.jpg ... 5.jpg I wanted to create a random number of 1 to 5 and write these images in the random ...

6 months ago | 1 answer | 0

### 1

Question

Segment pink color spots from image
I = imread('input_image'); figure, imshow(I) How to extract the pink colour spots in the attached image and find how much area...

6 months ago | 2 answers | 0

### 2

Question

Compute performance measures from neural network
How to compute Coefficient of Determination - R^2 Root Mean Squared Error - RMSE Mean Absolute Percentage Error - MAPE from...

8 months ago | 1 answer | 0

### 1

Question

Find all unique values and replace it with new values
I have a vector with values v = [0.23; 0.1; 0.33; 0.23 ; 0.33; 0.6; 0.6; 0.4]; I would like to find the unique values and repl...

8 months ago | 3 answers | 0

### 3

Question

Display string line by line
str = {'cats', 'dogs', 'birds'}; how to display the above string in command window as cats dogs birds

8 months ago | 1 answer | 0

### 1

Question

count the number of unique elements
I have a matrix with 2 rows 23 columns M = [3,2,3,3,2,3,3,2,4,3,3,3,1,1,1,3,4,4,3,5,5,3,3;1,1,1,1,1,1,1,1,1,2,2,2,3,3,4,4,4,4,5...

8 months ago | 1 answer | 0

### 1

Question

how to plot histogram
I wanted to plot the histogram of the attached data with number of bins = 42 When i use figure, imhist(HRGB,42) I get just 2...

8 months ago | 1 answer | 0

### 1

Question

replace RGB values with new values
How to change the pixel values of a RGB image to % if pixel value is in the following range 0-64 to 0 65-128 to 1 129-192...

8 months ago | 1 answer | 0

### 1

Question

How to do the computation using fuzzy logic
How to do the below computation using fuzzy logic?

8 months ago | 1 answer | 0

### 1

Question

replace matrix A with the values of another matrix B
Having a matrix A as attached, how to replace all those 1 in A with the values in matrix B, so that i get a new matrix as newA ...

9 months ago | 2 answers | 0

### 2

Question

Create new matrices based on the number of unique values
having a matrix M = [4 7 2; 2 4 7; 2 2 4]; M = 4 7 2 2 4 7 2 2 4 based on the number of uniqu...

9 months ago | 2 answers | 0

### 2

Question

Computing Euclidean distance between 2 points
I found a code computing Euclidean distance as diff = q - p; dist = sqrt(diff * diff'); is there any difference from the stan...

9 months ago | 2 answers | 0

### 2

Question

Find time between 2 given time
I wanted to get date and time separately, from the system time t t = datetime('now') Then, I wanted to find if the system tim...

9 months ago | 3 answers | 0

### 3

Question

Check if a binary image is within a particular binary area
I have a binary image BW_large, and another binary image BW_small How do I check if BW_small is within BW_large?

9 months ago | 2 answers | 0

### 2

Question

DIvide an area into sectors
I have a xy-coordinate say (350,339), I wanted to divide the area of size 640x640 centered at the xy-coordinate into 8 sectors (...

10 months ago | 2 answers | 0

### 2

Question

solve a fuzzy logic problem
I have to use fuzzy to find the likelihood of a fire in a car based on the following conditions, The judgment set are as follo...

10 months ago | 1 answer | 0