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

mehr als 8 Jahre vor | 1

| akzeptiert

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

mehr als 8 Jahre vor | 1

| akzeptiert

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

mehr als 8 Jahre vor | 1

| akzeptiert

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

mehr als 8 Jahre vor | 1

| akzeptiert

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

mehr als 8 Jahre vor | 2

| akzeptiert

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

mehr als 8 Jahre vor | 1

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

mehr als 8 Jahre vor | 0

| akzeptiert

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

mehr als 8 Jahre vor | 0

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

mehr als 8 Jahre vor | 1

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

mehr als 8 Jahre vor | 2

| akzeptiert

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

mehr als 8 Jahre vor | 1

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

mehr als 8 Jahre vor | 0

| akzeptiert

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

mehr als 8 Jahre vor | 0

| akzeptiert

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

mehr als 8 Jahre vor | 5

Gelöst


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

mehr als 8 Jahre vor

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

mehr als 8 Jahre vor | 1

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

mehr als 8 Jahre vor | 0

| akzeptiert

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

mehr als 8 Jahre vor | 0

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

mehr als 8 Jahre vor | 1

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

mehr als 8 Jahre vor | 0

| akzeptiert

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

mehr als 8 Jahre vor | 0

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

mehr als 8 Jahre vor | 0

| akzeptiert

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

mehr als 8 Jahre vor | 0

| akzeptiert

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

mehr als 8 Jahre vor | 1

| akzeptiert

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

mehr als 8 Jahre vor | 0

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

mehr als 8 Jahre vor | 0

| akzeptiert

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

mehr als 8 Jahre vor | 0

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

mehr als 8 Jahre vor | 1

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

mehr als 8 Jahre vor | 0

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

mehr als 8 Jahre vor | 2

| akzeptiert

Mehr laden