Content Feed
질문
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...
14일 전 | 답변 수: 1 | 0
1
답변질문
Find total area of all circles
How can we calculate the total area covered by all the circles together using Monte Carlo method?
15일 전 | 답변 수: 1 | 0
1
답변질문
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달 전 | 답변 수: 2 | 0
2
답변질문
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달 전 | 답변 수: 1 | 0
1
답변질문
display string in table
row1 = {'a' 'b' 'c' 'd'}; row2 = {'m' 'n' 'o' 'p'}; varnames = {'Col1' 'Col2' 'Col3' 'Col4'}; rownames = {'Row1' 'Row2'}; ...
4달 전 | 답변 수: 1 | 0
1
답변질문
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달 전 | 답변 수: 1 | 0
1
답변질문
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달 전 | 답변 수: 1 | 0
1
답변질문
change legend name of ROC
How to change the legend name (class1, class2, ...) of ROC when using plotroc(Ts,Y)
5달 전 | 답변 수: 1 | 0
1
답변질문
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달 전 | 답변 수: 1 | 0
1
답변질문
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달 전 | 답변 수: 1 | 0
1
답변질문
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달 전 | 답변 수: 1 | 0
1
답변질문
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달 전 | 답변 수: 1 | 0
1
답변질문
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달 전 | 답변 수: 1 | 0
1
답변질문
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달 전 | 답변 수: 2 | 0
2
답변질문
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달 전 | 답변 수: 1 | 0
1
답변질문
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달 전 | 답변 수: 3 | 0
3
답변질문
Display string line by line
str = {'cats', 'dogs', 'birds'}; how to display the above string in command window as cats dogs birds
8달 전 | 답변 수: 1 | 0
1
답변질문
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달 전 | 답변 수: 1 | 0
1
답변질문
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달 전 | 답변 수: 1 | 0
1
답변질문
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달 전 | 답변 수: 1 | 0
1
답변질문
How to do the computation using fuzzy logic
How to do the below computation using fuzzy logic?
8달 전 | 답변 수: 1 | 0
1
답변질문
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달 전 | 답변 수: 2 | 0
2
답변질문
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달 전 | 답변 수: 2 | 0
2
답변질문
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달 전 | 답변 수: 2 | 0
2
답변질문
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달 전 | 답변 수: 3 | 0
3
답변질문
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달 전 | 답변 수: 2 | 0
2
답변질문
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달 전 | 답변 수: 2 | 0
2
답변질문
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달 전 | 답변 수: 1 | 0
1
답변질문
plot graph based on given values
I have attached the data of cell count of different type of cells. The cell count of one type cell is given in each sheets . B...
10달 전 | 답변 수: 2 | 0
2
답변질문
create a new variable based on excel sheet values
I wanted to import data from excel spread sheets from multiple sheets. So i used a loop [~,sheet_name]=xlsfinfo('filename.xlsx'...
10달 전 | 답변 수: 1 | 0