Answered
Refresh overlaid plots without "hold on/hold off" in each loop iteration
To clear the second set of markers, get a handle to them and call delete sc2 = scatter(x2,y2,'r','Parent',f1); % Create mar...

11 months ago | 1

| accepted

Answered
automate scatter markers colours in groups
There is a function for exactly that, which makes it easy to color markers by group. It's called gscatter help gscatter

11 months ago | 1

Answered
The requested resource was not found.
See the FAQ and do exactly what it says in there and you should be up and running shortly. https://matlab.fandom.com/wiki/FAQ#A...

11 months ago | 0

Answered
Make calculation on line profile (Intensity) through object on image
To get the size (area), equivalent circular diameter, mean, max, and min intensities of the blob, why not simply threshold and c...

11 months ago | 0

Answered
Plots saved as JPEG look awful. How to improve?
If you're saving an image, use imwrite and save as a PNG format file. If you are saving an image and want the title, axes, and ...

11 months ago | 0

Answered
some variable viewer confusion
I believe you're checking it after you've overwritten it with code later on down in your script. Set a breakpoint on line 9 and...

11 months ago | 0

Answered
How do I fix a "Color data must be an m-by-n-by-3 or m-by-n matrix." error?
Before that image(imdata) line, do this and tell us what you see in the command window: whos imdata If you do that we'll see j...

11 months ago | 0

| accepted

Answered
Request for MATLAB Code of Elephant Search Algorithm (ESA)
You might find some interesting things in the File Exchange: https://www.mathworks.com/matlabcentral/fileexchange/?q=elephant ...

11 months ago | 0

Answered
polyshape not closing a circle
You might try other ways of drawing the circle. Some might need the image processing toolbox, but try looking at viscircles, po...

11 months ago | 0

Answered
Smooth Results from bwboundaries
If you want to smooth boundaries you can use splines or pchip. I'm attaching demos. Another option if you have a binary im...

11 months ago | 0

Answered
Display a small matrix as a gray scale image
Try using the 'InitialMagnification' option in imshow T2 =[ 0.4706 0.9804 0.8392 0.3216 0.9804 0.8392 ...

11 months ago | 0

Answered
how to remove old licenses
If you can't remove them by logging in to your account on the website, I'd call them on the phone and ask for sales or tech supp...

11 months ago | 0

Answered
Take 3x3 nearest neighbours round centroids of all spots and find the median of their mean
If you've used regionprops to find the centroids or the spots, then why not simply also ask it for the mean intensities? props ...

11 months ago | 0

Answered
Variable might be set by a nonscalar operator
If theta_deg is in degrees, you should be using the degrees version of cosine, not the radian version. In other words use cosd,...

11 months ago | 1

Answered
This erro occurred while cheking the code - "invalid use of operator"
Don't put single quotes around your variables. And you don't need the output arguments of the filenames. You can return the x_...

11 months ago | 0

Answered
Issues extracting fibers from an image
The attached demo, while not a complete solution for you, may be helpful in enhancing the fibers. Sorry, but it's all I have ...

11 months ago | 0

Answered
I want to detect leaf shape by line tracing.
Do a search of this forum for the tag "leaf". There are lots of examples. Basically you can probably segment the code by color...

11 months ago | 1

| accepted

Answered
Can I generate a standalone app with a trial license
I'm pretty sure you cannot compile code into a standalone app with a trial license. And I think some of the cheaper licenses wo...

11 months ago | 0

Answered
How to make multiple lines of best fit into one scatter graph
See my attached demo. It does a piecewise linear fit over two sections, finding the best splitting point. You can adapt it to ...

11 months ago | 0

Answered
What plugins to be installed for MATLAB
I don't know what you want to do. If you're acquiring your images from some medical imaging instrument and bringing them to you...

11 months ago | 0

Answered
Programmatically setting a radio button from within App Designer
I wouldn't use eval. What if you just set the other buttons also if setting the one you want doesn't change the others automati...

11 months ago | 0

Answered
Can someone rectify this code?
When you do this: out=[(1:1:10) ' fsolve(@myfun, Q0) '] it's trying to take a vector [1,2,3,4,5,6,7,8,9,10] and append a strin...

11 months ago | 0

Answered
Plotting around zero deg. Angle
I think you have to convert to rectangular/cartesian coordinates. pol2cart might help. You can use XData and YData in imshow i...

11 months ago | 0

Answered
The surface area won't round to one decimal place and I don't know how to get rid of the 'e's.
To get some other format displayed other than the default one, you can try to use format. If none of those built-in formats are...

11 months ago | 0

Answered
MATLAB Optional Function Arguments
Try inputParser help inputParser

11 months ago | 0

Poll


Snow where you live - love it or hate it?

12 months ago | 40 votes | 6 comments

Answered
edge detection and comparison
What I would do is this: First use a telecentric lens - not a regular lens. Then make sure the backgrounds are the same (lik...

12 months ago | 0

Answered
How do I process and display a 10 and 12 bit image in matlab?
Use [] to scale the actual data to whatever dynamic range your display can handle. For exampls imshow(snapshot2, [], "Parent",...

12 months ago | 0

Answered
How to make an subscript in this specific manner?
Put the max in braces: ylabel('$u_{max}$','interpreter','latex','FontSize',14);

12 months ago | 0

Load more