Answered
How to change angles to 0 to 180
How about just adding 180 to all angles less than 0, so for example -135 becomes +45 degrees. mask = angles < 180; angles(mask...

3 dagar ago | 0

Answered
How can I save "alpha" and "beta" parameters as double using fitdist command?
Try this (untested): % Preallocate a and b column vectors. One element for each file. a = zeros(50, 1); b = zeros(50, 1); %...

3 dagar ago | 0

Answered
How to hold previous figures when using imagesc?
If you want to paste an opaque copy of the newest image on top of existing images, see my attached copy and paste demo. If you ...

4 dagar ago | 0

Answered
Conditional if loop for addition of three consecutive numbers in app designer interface
Try it this way (untested and not using disp): x1 = app.EditField.Value x2 = app.EditField_2.Value x3 = app.EditField_3.Valu...

4 dagar ago | 0

Answered
How to set up a check box to review EMG signals?
Learn how to use App Designer and you can do that: MATLAB App Designer

4 dagar ago | 0

| accepted

Answered
Hi guys, my code doesn't run i couldn't debug this, could you anyone help me?
Put the fuunction definition at the END of your script, not near the beginning. Then you need to CALL IT, passing it all the ar...

4 dagar ago | 0

Answered
plotting trajectory direction of a path
See plot and quiver

4 dagar ago | 0

Answered
please help to decode the error using data mining
Add this to the end of your .m file: %=========================================================================================...

5 dagar ago | 0

Answered
Requesting a demo code for calculating second-order statistics (contrast, correlation, energy, homogeneity, and entropy) for medical images.
Try graycoprops. I'm also attaching a related GLCM demo and image moments demo. Good luck. help graycoprops

5 dagar ago | 0

Answered
Find value at which a line changes its slope
See if my attached piecewise linear fit identifies it correctly for you. If not, then attach your data after reading this: T...

5 dagar ago | 0

Answered
Read notepad into a variable
Try textLines = readlines(fileName); If you have any more questions, then attach your text file with the paperclip icon after ...

5 dagar ago | 0

Answered
How to shade the area between two lines (constructed by large number of data points)
FAQ: https://matlab.fandom.com/wiki/FAQ#How_do_I_shade_the_region_between_two_curves?

6 dagar ago | 0

Answered
Fit gaussian surface on 3D data
That's not 3-D data. That is 2-D data. How about you find the centroid with code I gave you before, then get the average radia...

6 dagar ago | 1

Answered
sortrows "not enough input arguments"
x = randi(99, 5, 2) x=sortrows(x,1) Seems to work fine. What did you do differently in the 59 prior lines of code?

6 dagar ago | 0

Answered
Error prediction of imregister results
Try using imabsdiff. However if there are black triangles rotated in, you don't want to compare those so you might have to take...

7 dagar ago | 0

Answered
my plot is blank?
What does this show in the command window? whos velocitiesB1 whos velocitiesB2 plot(velocitiesB1,velocitiesB2,'b-*'); Please...

7 dagar ago | 0

Answered
how this command works"meanGL = mean(blackMaskedImage(binaryImage));". My input image is a HSV image. How it calculates the mean.
Let's just take it one step at a time. See if this helps explain it grayScaleImage = magic(6) binaryImage = grayScaleImage > ...

7 dagar ago | 0

Answered
Why is the horizontal axis 0 to 1 in a histogram for a rgb image?
Please attach one of your images and code to read it in. Evidently your image got converted to floating point. And there is no...

8 dagar ago | 0

| accepted

Answered
How to reduce valid coin mask true pixels outside valid coins?
Don't use imfindcircles. Use bwareafilt to select only a certain number of blobs, or blobs in a certain size range.

8 dagar ago | 1

| accepted

Answered
How to calcutate the area of each cell?
How were the white boundaries obtained and in what form are they? You can probably use regionprops() if you can make a mask of ...

8 dagar ago | 0

Answered
Is it possible to have the line number of the editor window highlighted when I click somewhere in the code?
See the Preferences on the Home Tab of the tool ribbon. Look at the first checkbox: Check the box and choose your color. Th...

8 dagar ago | 0

Answered
Mean of CIE L*a*b values in a masked image
Yes, it was a mess but that's OK, I fixed it: % Read in demo image. rgbImage = imread('peppers.png'); subplot(1, 2, 1); imsh...

8 dagar ago | 1

| accepted

Answered
I cant locate the black region on my image using regionprops and imfindcircles.
Try this: % Demo by Image Analyst clc; % Clear the command window. close all; % Close all figures (except those of imtool...

8 dagar ago | 0

| accepted

Answered
I cant locate the black region on my image using regionprops and imfindcircles.
You can threshold and then use imclearborder and then bwareafilt. If you need more help, attach the original image by itself. ...

9 dagar ago | 0

Answered
What does this command line mean? (matrix A =[A t])
It means, if A is a row vector, that the value of t is to be stitched onto the right side of row vector A to form a new row vect...

9 dagar ago | 0

Answered
How do I declutter my figure?
Why don't you use subplot() to make 4 separate plots all vertically stacked. Or use stackedplot

9 dagar ago | 0

Answered
Error using vertcat Dimensions of arrays being concatenated are not consistent.
pixel_val and pixel_freq have different number of columns -- check it for yourself -- so you cannot stitch them together vertica...

10 dagar ago | 1

Answered
How to remove apostrophes from empty cells when using readtable
Why are you trying to plot them? Shouldn't you just use table2array to extract the numbers and plot only the numbers (shown in ...

10 dagar ago | 0

Answered
How to segment this image better?
The two main problems in the image are poor lighting and lens shading. Try to put the paper in a light booth where the lighting...

11 dagar ago | 0

Load more