Respondida
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...

más de 8 años hace | 1

| aceptada

Respondida
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...

más de 8 años hace | 1

| aceptada

Respondida
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...

más de 8 años hace | 1

| aceptada

Respondida
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...

más de 8 años hace | 1

| aceptada

Respondida
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...

más de 8 años hace | 2

| aceptada

Respondida
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; ...

más de 8 años hace | 1

Respondida
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...

más de 8 años hace | 0

| aceptada

Respondida
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...

más de 8 años hace | 0

Respondida
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))...

más de 8 años hace | 1

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

más de 8 años hace | 2

| aceptada

Respondida
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 ...

más de 8 años hace | 1

Respondida
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...

más de 8 años hace | 0

| aceptada

Respondida
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('...

más de 8 años hace | 0

| aceptada

Respondida
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...

casi 9 años hace | 5

Resuelto


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...

casi 9 años hace

Respondida
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...

casi 9 años hace | 1

Respondida
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) ...

casi 9 años hace | 0

| aceptada

Respondida
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...

casi 9 años hace | 0

Respondida
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*']; ...

casi 9 años hace | 1

Respondida
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...

casi 9 años hace | 0

| aceptada

Respondida
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...

casi 9 años hace | 0

Respondida
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. ...

casi 9 años hace | 0

| aceptada

Respondida
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 ...

casi 9 años hace | 0

| aceptada

Respondida
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...

casi 9 años hace | 1

| aceptada

Respondida
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...

casi 9 años hace | 0

Respondida
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...

casi 9 años hace | 0

| aceptada

Respondida
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...

casi 9 años hace | 0

Respondida
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...

casi 9 años hace | 1

Respondida
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 ...

casi 9 años hace | 0

Respondida
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 =...

casi 9 años hace | 2

| aceptada

Cargar más