Answered
Error when remapping BW image to RGB after applying filter
One problem was the lack of good comments. But the main problem was not casting your logical (binary) images to uint8 before cr...

17 days ago | 1

Answered
Help finding length of an image
Use bwferet(), introduced in r2019a.

17 days ago | 0

Answered
How to plot 2 different colour using RBG setting
Your y2 does not have the same number of elements as x. It has nothing to do with the colour.

17 days ago | 0

Answered
Writing callback for gui
Are you using GUIDE or App Designer? Either way, the source code will have a callback for the pushbutton. If using GUIDE, righ...

17 days ago | 0

Answered
How can I see the all results at the same time according to changing values in a "for" loop?
Set a breakpoint at the end of the for loop and look in the workspace panel. Or, take the semicolons off the ends of the line...

18 days ago | 0

Answered
How to eliminate, function not found warnings when using Matlab Runtime
Some functions cannot be included in a compiled executable. Usually they are applets with a user interface like the Classificat...

18 days ago | 0

Answered
obtain values of amplitude after executing plot command
What is your definition of amplitude? The value of x1 is the amplitude of your signal at every value of t. y is the handle t...

18 days ago | 0

| accepted

Answered
how can i detect object using knn ?
For what it's worth, attached is a KNN demo, though for (x,y) points, not for an image. For image processing, you need to decid...

18 days ago | 0

Answered
Animating an imported image
See Steve's blog for how to create an animated gif: https://blogs.mathworks.com/steve/2019/12/20/how-to-write-animated-png-apng...

19 days ago | 1

Answered
Animating an imported image
See attached demo for how to turn something displayed in an axes, like an image or a plot, into a movie.

19 days ago | 1

Answered
How to make Latin look up table
I'm not sure if there is a Latin Square generating function in MATLAB though there are some design of experiments functions in t...

19 days ago | 0

Answered
Please help me to code below problem
Here's a snippet that will be useful to you: % Ask user for one integer number. defaultValue = 45; titleBar = 'Enter an integ...

19 days ago | 0

Answered
Hello! I have a problem with a while condition. Can you please help me?
There is no guarantee that there will be a square possible on your finite set of spline points. I've asked John D'Errico for an...

19 days ago | 0

Answered
dbscan clustering error in matlab
Because it was introduced in R2019a. Please upgrade if you want to use it.

19 days ago | 0

| accepted

Answered
Finding Shortest Path Without Crossing Restricted Areas
If you can qunatize your coordinates into a digital image, you can use bwdistgeodesic() like shown in Steve's blog series on sho...

19 days ago | 0

Answered
Translational motion of a rotating object.
Try this: w=5; % angular velocity theta=0; P=[0 0]; % P is position dt=0.01; % dt= time step for i=1:500 theta_n= ...

20 days ago | 0

Answered
How to get smoothed edges afeter background removal ?
Take your binary image and smooth it then threshold at 0.5 and apply it. windowSize = 9; % An odd number. Bigger = more smooth...

20 days ago | 0

Answered
Colorbar Causing mismatch in subfigure
You can move the colorbar: hcb = colorbar; hcb.Position(1) = .8 % Move left edge of colorbar. hcb.Position(3) = .08 % Adjust ...

20 days ago | 0

| accepted

Answered
Is is possible to change the font size of a questdlg's buttons?
I believe that button text is an operating system setting. You can change it there. Or maybe you can override that with the th...

20 days ago | 0

Answered
how to set concentric rectangle dataset´╝č
Try this: % Define parameters. numPoints = 1000000; % Something way bigger than you think you'll need. n1 = 200; n2 = 300; ...

20 days ago | 0

| accepted

Answered
hello everyone, i am a noob using matlab. please help me i have an equation and 2 unknown variable
Your equation is the "Fluorescence Recovery Curve -- Michaelis-Menten function" or "the Rate equation". So you can use fitnlm...

20 days ago | 0

Answered
Image splitting and saving the images separately.
Next, when you look at what you're writing, it's this: image16bit = uint16(24/256); imwrite(image16bit, fullfile(Folder,baseFi...

20 days ago | 0

| accepted

Answered
How to measure intensity in 16bit image using improfile?
Use the uint16 function, like I = uint16(I); or c = uint16(c); I or c will now be 16 bit but their values will still be the ...

20 days ago | 0

| accepted

Answered
How to make threshold lines and mark the 1st intersection line?
What do you mean by upper and lower 20%? Do you mean like percent of the range from the min to the max value? theRange = max...

20 days ago | 1

| accepted

Answered
how to set concentric rectangle dataset´╝č
In your code, see how n1 and n2 are passed into randn(): r = unifrnd(-0.9,0.9,[1,n1]);%r= r(randperm(length(r))); t = unifrnd(...

20 days ago | 0

Answered
fatal error: coder_posix_time.h: No such file or directory
Try one of these commands in the command window. rehash rehash path rehash toolbox rehash toolboxcache

21 days ago | 0

Answered
Image Down-sizing
Did you look in the documentation for imresize()? That's always a good place to start. You'll see under method that there are ...

21 days ago | 0

Answered
how can i take the values from edit_text of gui to function
Try this link: function ut = u(handles, x, y) ut = handles.edit11.String evalc(ut) end

21 days ago | 1

| accepted

Answered
How to convert a vector to rgb colormap?
Do this: % Colormap "where the value of the 0.2 to 1 is red and % -0.2 to -1 is blue, and the rest is green. numColors = 256;...

21 days ago | 0

| accepted

Answered
hello iam trying to solve a system of non linear equations and i don't know what the wrong so if any one can help me it will be appreciated..
What is the class of f? Since you're using "==" when you define it, I'm guessing it's not a double. Why are you using == any...

21 days ago | 1

Load more