Answered
I need to remove all colors in the image except the red one. Please help
Another a little bit flexible solution: % Read image I = imread('r1.PNG'); % Make mask using R channel BW = imbinar...

8 years ago | 1

| accepted

Answered
I had an fingerprint image, i want to make the fingerprint in the image white and the background black how to do that ?
Using <https://jp.mathworks.com/help/images/ref/bwconvhull.html *bwconvhull*> function, you can create fingerprint masking image...

8 years ago | 1

| accepted

Answered
how to find x-y coordinates of minutia(end points , short ridges) of finger print image , and store it in matrix ?
Assuming the maximum 'area' (not 'length') of short ridges < 50 pixel, I think the following code can detect them. % Read t...

8 years ago | 1

| accepted

Answered
Text Extraction and retrieval
Just tried to make a script to do that. Here is the result (assuming the maximum ID = 10). % Read your text file fid = f...

8 years ago | 1

| accepted

Answered
Selecting a random element from a matrix with a range.
How about the following script? d = rand(10); % Extract elements of d < 0.5 idx = d < 0.5; d2 = d(idx); % If d2...

8 years ago | 2

| accepted

Answered
How to plot high resolution?
How about adjusting a resolution by setting 'Position' property of |figure|. Here is an example. % Sample data mu = 0.0; ...

8 years ago | 1

Answered
How can I classify the image pixels into two classes only using Kmeans algorithm?
I think the solution would be like this: % Read gray-scale image I = imread('cameraman.tif'); % Clustering by k-mea...

8 years ago | 0

| accepted

Answered
How can i Break a sampled signal up into 4 sections to use for 4 seperate fft calculations
I think it's time to use the Signal Analyzer App! Please check the following example. <https://www.mathworks.com/help/sign...

8 years ago | 0

Answered
How to calculate the distance between two black point?
How about the following script?? % Read the image and binarize I = imread('DCB57 0346.jpg'); BW = imbinarize(rgb2gray(I))...

8 years ago | 1

Answered
get the width of bounding box
It seems that |regionprops| function will be helpful, like: % Read the image and binarize I = imread('aardappels.jpg'); ...

8 years ago | 2

| accepted

Answered
Finding average diameter of bacteria using FFT .
Need to use FFT? I think you can find average diameter by using |imfindcircles| function, like: % Read the image and ...

8 years ago | 1

Answered
How to choose the boundaries of the gray zone in the image?
By combining |imclose|, |imopen|, and |bwconvhull| functions, you can determine the target area. Here is an example. % Read...

8 years ago | 0

| accepted

Answered
How can i remove the noises (white pixels) in the image?
One typical and simple way to do this is to use |imopen| function. Here is an example. % Reading your image I = imread('...

8 years ago | 0

| accepted

Answered
How do I remove the bottom line of the axes in a saved figure?
By setting the 'Visible' property of the axes 'off' after plotting your graph, you can remove the axes. Following is a simple ex...

8 years ago | 5

Solved


Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

8 years ago

Answered
Need help coding a grading system to a data set.
Using |table| type variable and |discretize| function, you can discretize the average score and assign 'A' - 'E' for each bin, l...

8 years ago | 1

Answered
How to replace certain values in matrix ?
Assuming A, B and C are your 1_mass, 2_mass and 3_mass matrix, the solution will be like: C = B; idx = isnan(A); C(idx) ...

8 years ago | 0

| accepted

Answered
Write a function that will receive a character and a positive integer n. It will create and return a cell array with strings of increasing lengths, from 1 to the integer n. It will build the strings with successive characters
The function becomes like this. Please note that the following sample script is very basic one. So, some exception handling proc...

8 years ago | 0

Answered
Searching for a file containing certain words
How about the following code? word1 = {'A','B','C'}; for kk = 1:numel(word1) str = ['*',word1{kk},'*1*top*']; ...

8 years ago | 1

Answered
How to calculate autocorrelation of series in different columns of a 68x5 matrix
Assuming that M is your matrix: % Autocorrelation of i_th country autocorr(M(:,i)) % Crosscorrelation between i_t...

8 years ago | 0

| accepted

Answered
Hi, Can anyone tell me how can i plot evenly spaced angles in a matrix form. Matrix is of N*M size
I believe the following would be a solution to generate your matrix S. N = 4; M = 8; phiDelta = 2*pi/M; S = []; for...

8 years ago | 0

Answered
How to sort a table by portions of the variable names in columns
Regarding the 1st question, the solution will be like the following. The same method can be applied to solve the 2nd question. ...

8 years ago | 0

| accepted

Answered
How can I combine two existing figures in one?
Nilou-san, Thanks for giving me the detail. OK, the following is sample code for plotting your two plots in the same axes. I ...

8 years ago | 0

| accepted

Answered
Extraction of rectangular blob from binary image
How about comparing length around the blob and length around the bounding box of the blob, like: % sample blogs I = imre...

8 years ago | 1

| accepted

Answered
Feature extraction for classification
I believe the following example will be your help. Using this method, you can extract 4096-dimensional feature vector for each i...

8 years ago | 0

Answered
How to obtain statistics between rows from columns with similar variable name when using timetable?
Assuming that your timetable is |TT|, the following code can generates what you want to obtain. list = TT.Properties.Varia...

8 years ago | 0

| accepted

Answered
Using countourf for 1D vectors
By using |meshgrid| and |griddata|, you can create contour from 3 unidimensional vectors, like: % 1D data x = randn(1,400...

8 years ago | 0

Answered
How to remove a some part of a string from a string?
If your MATLAB is R2016b or later version, you can use |erase| function, like: >> str = 'Pdus_ENGINE_PKG_ENGINE_ECU_Stat_PT...

8 years ago | 1

Answered
How can I read a specific txt column?
You can extract 2nd column and convert it to numeric array by the following code. After doing this process, you can obtain mean ...

8 years ago | 0

Answered
How to predict using interpolation or polyfit
...Or |polyfit| function, like: xy = [1.2, 2.3; 4.8, 2.7; 5.8, 3.5]; p = polyfit(xy(:,1), xy(:,2), 2); x =...

8 years ago | 2

| accepted

Load more